Description Usage Arguments Details Value Author(s) References
This function computes the value of Cramer's V for a two-way table.
1 | cramer(tbl)
|
tbl |
Two-way table, or matrix, of counts. |
If X^2 is the usual chi-squared measure of association in a two-way table, Cramer's V is sqrt (X^2 / (n * (k-1))), where n is the total number of observations in the table, and k is min (nrow(table), ncol(table)).
Numeric value of Cramer's V, with name "X-squared".
Sam Buttrey
Agresti, "Categorical Data Analysis," p. 75, where V^2 is used.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.