cramer.v.stars: Graphical interpretation of Cramer's V

Description Usage Arguments Details See Also Examples

View source: R/stats.R

Description

Returns a graphical interpretation of the Cramer's V.

Usage

1

Arguments

tab

table on which to compute Cramer's V test.

Details

The function returns a graphical interpretation of the Cramer's V measure of the strength of assocation between two nominal variables, under the form of a variable number of asterisks : no star means V < 0.05; * means V >= 0.05; ** means V >= 0.15 ; *** means V < 0.30.

See Also

cramer.v

Examples

1
2
3
4
5
## From Agresti(2007) p.39
M <- as.table(rbind(c(762, 327, 468), c(484, 239, 477)))
dimnames(M) <- list(gender = c("F", "M"), party = c("Democrat","Independent", "Republican"))
cramer.v(M))  # Computes Cramer's V with cramer.v() function from questionr package
cramer.v.stars(M) # Prints graphical Cramer's V summary with stars

pmerckle/datatools documentation built on Feb. 21, 2022, 2:19 a.m.