| phi2CT | R Documentation |
phi2CT
A fast function to compute the phi2 for a Contingency table.
phi2CT(CT)
CT |
A contingency table. |
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.
The phi2 (coefficient of correlation) associated with the Contingency table.
phi2Mat4BurtTable
phi2CT(matrix(c(19,15,7,14,4,21,5,22,8,5,9,21), nrow = 4) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.