Description Usage Arguments Value Examples
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.
1 | clusterscore(Z)
|
Z |
a centered and reduced data matrix obtained with the recod function |
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 |
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.