Return col squared cosines for each correspondence component
Examples
library(FactoMineR2)
X_scaled <- mtcars[, c(2, 8:11)] |>
ca_standardize()
X_scaled |>
ca_weighted_eigen() |>
ca_col_coords() |>
ca_col_cos2(X_scaled) |>
head()
#> Dim.1 Dim.2 Dim.3 Dim.4 Dim.5
#> cyl 0.5573995 0.281626699 0.148219312 0.012754513 1.152314e-31
#> vs 0.7286036 0.197961246 0.064986732 0.008448429 3.433568e-33
#> am 0.5215476 0.395237747 0.071406821 0.011807882 3.825901e-33
#> gear 0.8594986 0.004186812 0.002279625 0.134034951 1.058014e-31
#> carb 0.3459657 0.355922534 0.295535197 0.002576601 4.256951e-32