View source: R/weighted.cramer.R
weighted.cramer | R Documentation |
Computes Cramer's V measure of association between two (possibly weighted) categorical variables
weighted.cramer(x, y, weights = NULL, na.rm = FALSE)
x |
the first categorical variable |
y |
the second categorical variable |
weights |
numeric vector of weights. If NULL (default), uniform weights (i.e. all equal to 1) are used. |
na.rm |
logical, indicating whether NA values should be silently removed before the computation proceeds. |
Numerical value with Cramer's V.
Nicolas Robette
Rakotomalala R., 'Comprendre la taille d'effet (effect size)', http://eric.univ-lyon2.fr/~ricco/cours/slides/effect_size.pdf
assoc.twocat
data(Movies)
weighted.cramer(Movies$Country, Movies$ArtHouse)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.