Description Usage Arguments Details See Also Examples
Returns a graphical interpretation of the Cramer's V.
1 | cramer.v.stars(tab)
|
tab |
table on which to compute Cramer's V test. |
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.
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.