kmeans.getk {fdm2id} | R Documentation |
Estimation of the number of clusters for K-means
Description
Estimate the optimal number of cluster of the K-means clustering method.
Usage
kmeans.getk(
d,
max = 9,
criterion = "pseudo-F",
graph = TRUE,
nstart = 10,
seed = NULL
)
Arguments
d |
The dataset ( |
max |
The maximum number of clusters. Values from 2 to |
criterion |
The criterion to be optimized. |
graph |
A logical indicating whether or not a graphic should be plotted. |
nstart |
The number of random sets chosen for |
seed |
A specified seed for random number generation. |
Value
The optimal number of cluster of the K-means clustering method according to the chosen criterion.
See Also
Examples
require (datasets)
data (iris)
kmeans.getk (iris [, -5])
[Package fdm2id version 0.9.9 Index]