Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


chemometrics (version 1.4.1)

clvalidity: compute and plot cluster validity

Description

A cluster validity measure based on within- and between-sum-of-squares is computed and plotted for the methods k-means, fuzzy c-means, and model-based clustering.

Usage

clvalidity(x, clnumb = c(2:10))

Arguments

x
input data matrix
clnumb
range for the desired number of clusters

Value

Details

The validity measure for a number k of clusters is $\sum_j W_j$ divided by $\sum_{jj and l.

References

K. Varmuza and P. Filzmoser: Introduction to Multivariate Statistical Analysis in Chemometrics. CRC Press, Boca Raton, FL, 2009.

See Also

princomp

Examples

Run this code
data(glass)
require(robustbase)
res <- pcaCV(glass,segments=4,repl=100,cex.lab=1.2,ylim=c(0,1),las=1)

Run the code above in your browser using DataLab