powered by
Estimate the optimal number of cluster of the K-means clustering method.
kmeans.getk( d, max = 9, criterion = "pseudo-F", graph = TRUE, nstart = 10, seed = NULL )
The dataset (matrix or data.frame).
matrix
data.frame
The maximum number of clusters. Values from 2 to max are evaluated.
max
The criterion to be optimized. "pseudo-F" is the only criterion implemented in the current version.
"pseudo-F"
A logical indicating whether or not a graphic should be plotted.
The number of random sets chosen for kmeans initialization.
kmeans
A specified seed for random number generation.
The optimal number of cluster of the K-means clustering method according to the chosen criterion.
pseudoF, kmeans
pseudoF
# NOT RUN { require (datasets) data (iris) kmeans.getk (iris [, -5]) # }
Run the code above in your browser using DataLab