Description Usage Arguments Examples
Calculates Cramer's V for a given contingency table.
1 | cramers_v(contingency_table)
|
contingency_table |
1 2 3 4 5 6 7 8 9 10 11 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (contingency_table)
{
CV <- sqrt(chisq.test(contingency_table, correct = FALSE)$statistic/(sum(contingency_table) *
min(dim(contingency_table) - 1)))
as.numeric(CV)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.