InertiaTable: A function to compute the inertia of a contingency table

View source: R/BootRatio.R

InertiaTableR Documentation

A function to compute the inertia of a contingency table

Description

InertiaTable: computes the inertia (i.e., phi square or chi-square / N) of a contingency table. The computation matches the value obtained from the inertia of the correspondence analysis of the contingency table. InertiaTable is mostly used for permutation tests and bootstrap estimates.

Usage

InertiaTable(X)

Arguments

X

A contingency table (non negative numbers)

Value

the inertia (a la correspondence analysis) of the contingency table

Author(s)

Hervé Abdi

Examples

set.seed(42)
X = matrix(round(runif(12)*20), nrow = 3)
InertiaOfATable <- InertiaTable(X)

HerveAbdi/PTCA4CATA documentation built on July 17, 2022, 5:41 a.m.