pca_ind_cos2 | R Documentation |
Return individual squared cosines for each principal component
pca_ind_cos2(ind_coords, weighted_col = rep(1, ncol(ind_coords)))
ind_coords |
individual coordinates |
weighted_col |
column weights |
A dataframe of individual squared cosines.
library(booklet)
iris[, -5] |>
pca_standardize_norm() |>
pca_weighted_eigen() |>
pca_ind_coords() |>
pca_ind_cos2() |>
head()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.