phi2CT: A fast function to compute the phi2 for a Contingency table.

View source: R/goodies4MCA.R

phi2CTR Documentation

A fast function to compute the phi2 for a Contingency table.

Description

phi2CT A fast function to compute the phi2 for a Contingency table.

Usage

phi2CT(CT)

Arguments

CT

A contingency table.

Details

phi2 is the coefficient of correlation for a contingency table. It is equal to the inertia of the contingency tables divided by the min(number of rows, number of columns) - 1. The inertia is also equal to the Chi2 of the table divided by its total. Phi2 could also be derived from the function chisq.test.

Value

The phi2 (coefficient of correlation) associated with the Contingency table.

See Also

phi2Mat4BurtTable

Examples

phi2CT(matrix(c(19,15,7,14,4,21,5,22,8,5,9,21), nrow = 4) )

HerveAbdi/data4PCCAR documentation built on Sept. 11, 2022, 4:19 p.m.