Description Usage Arguments Value Author(s) See Also Examples
View source: R/ClusterStability.R
Compute cluster stability w.r.t. pairs of data points over B random subsamples of size m < n (where n is the total sample size). Default for m=0.75n. Clustering is done using a full covariance Gaussian mixture model. Measure of cluster stability is based on the adjusted Rand index of shared points given two subsets of the data.
1 | ClusterStability(xx, k, B = 10, frac_subsample = 0.75)
|
xx |
The data matrix (n x p). |
k |
The number of clusters. |
B |
The number of subsampled data sets to be used (default: |
frac_subsample |
Fraction of total samples to be used in each subsample (default: 0.75). |
stab |
Measure of cluster stability. |
Bernd Taschler: bernd.taschler@dzne.de
Sach Mukherjee: sach.mukherjee@dzne.de
MCAPfit
,
OptDimClusterStability
,
GMMwrapper
,
adjustedRandIndex
1 2 3 4 5 6 7 8 | ## standard Normal matrix, 2 clusters:
ClusterStability(xx = matrix(rnorm(1e3), 100), k = 2)
## Not run:
## large input matrix
ClusterStability(xx = matrix(rnorm(1e3*1e4), 1e3), k = 5, B = 20)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.