Return variable squared cosines
Examples
library(FactoMineR2)
iris[, -5] |>
pca_standardize_norm() |>
pca_weighted_eigen() |>
pca_var_coords() |>
pca_var_cos2() |>
head()
#> Dim.1 Dim.2 Dim.3 Dim.4
#> Sepal.Length 0.7871178 0.1293302201 0.075480568 0.0014047846
#> Sepal.Width 0.2103198 0.7739934251 0.008706250 0.0003138904
#> Petal.Length 0.9766271 0.0005446159 0.002944712 0.0132168684
#> Petal.Width 0.9249765 0.0040686739 0.058646967 0.0056411941