clusterscore: Calculates de synthetic variable of a cluster

Description Usage Arguments Value Examples

View source: R/clusterscore.R

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

1

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

1
2
3
4
5
6
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

chavent/ClustOfVar documentation built on Nov. 7, 2019, 2:19 p.m.