stability: Estimate clustering stability of k-means
Description
Estimate of k-means bootstrapping stability
Usage
stability(x, k, B = 20, r = 5, scheme_2 = TRUE)
Value
membership
a vector of membership for each observation from the reference clustering
obs_wise
vector of estimated observation-wise stability
overall
numeric estimated overall stability
Arguments
x
a data.frame of the data set
k
a integer number of clusters
B
number of bootstrap re-samplings
r
number of runs of k-means
scheme_2
logicalTRUE if scheme 2 is used, FASLE if scheme 1 is used
Author
Han Yu
Details
This function estimates the clustering stability through bootstrapping approach.
Two schemes are provided. Scheme 1 uses the clustering of the original data as the reference
for stability calculations. Scheme 2 searches acrossthe clustering samples that gives the
most stable clustering.
References
Bootstrapping estimates of stability for clusters, observations and model selection.
Han Yu, Brian Chapman, Arianna DiFlorio, Ellen Eischen, David Gotz, Matthews Jacob and Rachael Hageman Blair.