stability {bootcluster} | R Documentation |
Estimate clustering stability of k-means
Description
Estimate of k-means bootstrapping stability
Usage
stability(x, k, B = 20, r = 5, scheme_2 = TRUE)
Arguments
x |
a |
k |
a |
B |
number of bootstrap re-samplings |
r |
number of runs of k-means |
scheme_2 |
|
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.
Value
membership
a
vector
of membership for each observation from the reference clusteringobs_wise
vector
of estimated observation-wise stabilityoverall
numeric
estimated overall stability
Author(s)
Han Yu
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.
Examples
set.seed(1)
data(wine)
x0 <- wine[,2:14]
x <- scale(x0)
stability(x, k = 3, B=20, r=5, scheme_2 = TRUE)