Skip to contents

Return col contributions for each correspondence component

Usage

ca_col_contrib(col_coords, X, eigs)

Arguments

col_coords

col coordinates

X

standardized matrix

eigs

eigs computed by ca_weighted_eigen

Examples

library(FactoMineR2)

X_scaled <- mtcars[, c(2, 8:11)] |>
  ca_standardize()

eigs <- X_scaled |>
  ca_weighted_eigen()

eigs |>
  ca_col_coords() |>
  ca_col_contrib(X_scaled, eigs) |>
  head()
#>         Dim.1      Dim.2      Dim.3     Dim.4     Dim.5
#> cyl  12.95900 14.2696518 18.3270863  8.716777 45.727483
#> vs   40.19612 23.8016793 19.0678267 13.701114  3.233256
#> am   23.97806 39.6016340 17.4599690 15.958028  3.002309
#> gear 12.97018  0.1376953  0.1829566 59.457431 27.251732
#> carb  9.89663 22.1893396 44.9621615  2.166650 20.785219