clusterscore {ClustOfVar}R Documentation

Calculates de synthetic variable of a cluster

Description

Calculates the synthetic variable of a cluster of variables. The variables can be quantitative or qualitative. The synthetic variable is the first principal component of PCAmix. The variance of the synthetic variable is the first eigenvalue. It is equal to the sum of squared correlations or correlation ratios to the synthetic variable. It measures the homogeneity of the cluster.

Usage

clusterscore(Z)

Arguments

Z

a centered and reduced data matrix obtained with the recod function

Value

f

the synthetic variables i.e. the scores on the first principal component of PCAmix

sv

the standard deviation of f i.e. the first singular value

v

the standardized loadings

Examples

data(decathlon)
A <- 1:5
Z <- PCAmixdata::recod(X.quanti=decathlon[1:10,A], X.quali=NULL)$Z
clusterscore(Z)
Z%*%as.matrix(clusterscore(Z)$v)
clusterscore(Z)$f

[Package ClustOfVar version 1.1 Index]