Skip to contents

Return variable correlation

Usage

pca_var_cor(eigs)

Arguments

eigs

eigs computed by get_eigen or get_weighted_eigen

Examples

library(FactoMineR2)

iris[, -5] |>
  standardize_norm() |>
  get_weighted_eigen() |>
  pca_var_cor() |>
  head()
#>                   Dim.1       Dim.2       Dim.3       Dim.4
#> Sepal.Length -0.8871966 -0.35962511  0.27473727  0.03748046
#> Sepal.Width   0.4586063 -0.87976896 -0.09330729 -0.01771695
#> Petal.Length -0.9882445 -0.02333701 -0.05426520 -0.11496464
#> Petal.Width  -0.9617570 -0.06378616 -0.24217136  0.07510788