weighted.cramer: Cramer's V

View source: R/weighted.cramer.R

weighted.cramerR Documentation

Cramer's V

Description

Computes Cramer's V measure of association between two (possibly weighted) categorical variables

Usage

weighted.cramer(x, y, weights = NULL, na.rm = FALSE)

Arguments

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.

Value

Numerical value with Cramer's V.

Author(s)

Nicolas Robette

References

Rakotomalala R., 'Comprendre la taille d'effet (effect size)', http://eric.univ-lyon2.fr/~ricco/cours/slides/effect_size.pdf

See Also

assoc.twocat

Examples

data(Movies)
weighted.cramer(Movies$Country, Movies$ArtHouse)

descriptio documentation built on June 8, 2025, 10:50 a.m.