CA-class: CA Results

CA-classR Documentation

CA Results

Description

An S4 class to store the results of a simple correspondence analysis.

Note

This class inherits from MultivariateAnalysis.

Author(s)

N. Frerebeau

See Also

Other class: BootstrapCA-class, BootstrapPCA-class, MCA-class, MultivariateAnalysis, MultivariateBootstrap, MultivariateResults, MultivariateSummary, PCA-class, PCOA-class

Examples

## Data from Lebart et al. 2006, p. 170-172
data("colours")

## The chi square of independence between the two variables
stats::chisq.test(colours)

## Compute correspondence analysis
X <- ca(colours)

## Plot rows
viz_rows(X, labels = TRUE)

## Plot columns
viz_columns(X, labels = TRUE)

## Get row coordinates
get_coordinates(X, margin = 1)

## Get column coordinates
get_coordinates(X, margin = 2)

## Get total inertia
sum(get_inertia(X))

## Get row contributions
get_contributions(X, margin = 1)

dimensio documentation built on Sept. 11, 2024, 8:35 p.m.