Description Usage Arguments Value Methods (by generic) Author(s) References See Also
The number of clusters K should be determined before the clustering method is performed. A permutation approach using Gap Statistic is used.
1 2 3 4  | 
x | 
 An n by p numeric data matrix, and n is the number of observations and p the number of features.  | 
nClusters | 
 a candidate sequence of K. Default is   | 
nperms | 
 Number of permutations. Default is   | 
nstart | 
 The number of initial random sets chosen from (distinct) rows in   | 
... | 
 unused.  | 
The function returns a list of the following components:
OptimalK | 
 The optimal number of clusters chosen from   | 
plotinfo | 
 A list containing the information needed in S3 method   | 
plot: plot the Gap statistic of each candicate number of clusters K.
Wenyu Zhang
Robert, T. et al. (2001). Estimating the number of clusters in a data set via the gap statistic. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 63(2), 411-423.
Other sparse weighted K-Means functions: KMeansSparseCluster.permute.weight,
KMeansSparseCluster.weight,
kmeans.weight.tune,
kmeans.weight
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.