ca_col_contrib: Compute col contributions

View source: R/ca.R

ca_col_contribR Documentation

Compute col contributions

Description

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

Value

A dataframe of col contributions.

Examples

library(booklet)

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()

booklet documentation built on June 8, 2025, 11:40 a.m.