Calculates a goodness of clustering measure based prediction sum squares.
Usage
cluster.q(data,cluster)
Arguments
data
The data matrix
cluster
a vector descibing the cluster memberships
Value
The clustering mean Q2
References
Eriksson, L., Johansson, E., Kettaneh-Wold, N. and Wold, S. (1999)Introduction to
Multi- and Megavariate Data Analysis using Projection Methods (PCA & PLS), Umetrics