Description Usage Arguments Value Source See Also Examples
View source: R/analysis_dimReduction_pca.R
Total contribution of a variable is calculated as per
((Cx * Ex) + (Cy * Ey))/(Ex + Ey)
, where:
Cx
and Cy
are the contributions of a variable to
principal components x
and y
Ex
and Ey
are the eigenvalues of principal components
x
and y
1 | calculateLoadingsContribution(pca, pcX = 1, pcY = 2)
|
pca |
|
pcX |
Character: name of the X axis of interest from the PCA |
pcY |
Character: name of the Y axis of interest from the PCA |
Data frame containing the correlation between variables and selected principal components and the contribution of variables to the selected principal components (both individual and total contribution)
Other functions to analyse principal components:
performPCA()
,
plotPCAvariance()
,
plotPCA()
1 2 | pca <- performPCA(USArrests)
calculateLoadingsContribution(pca)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.