Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

Details

The validity measure for a number k of clusters is ∑_j W_j divided by ∑_{j<l} B_{jl} with W_j is the sum of squared distances of the objects in each cluster cluster to its center, and B_{jl} is the squared distance between the cluster centers of cluster j and l.

Value

validity

vector with validity measure for the desired numbers of clusters

Author(s)

Peter Filzmoser <P.Filzmoser@tuwien.ac.at>

References

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

See Also

Examples

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

chemometrics

Multivariate Statistical Analysis in Chemometrics

v1.4.2
GPL (>= 3)
Authors
Peter Filzmoser and Kurt Varmuza
Initial release
2017-03-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.