pca_var_contrib | R Documentation |
Return variable contributions
pca_var_contrib(var_cos2, eigs, weighted_col = rep(1, ncol(var_cos2)))
var_cos2 |
variable coordinates |
eigs |
eigs computed by |
weighted_col |
column weights |
A dataframe of variable contributions.
library(booklet)
eigs <- iris[, -5] |>
pca_standardize_norm() |>
pca_weighted_eigen()
eigs |>
pca_var_coords() |>
pca_var_cos2() |>
pca_var_contrib(eigs) |>
head()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.