ca_col_contrib {booklet}R 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()

[Package booklet version 1.0.0 Index]