cramer | R Documentation |
Computes the Cramer's association coefficient between 2 nominal variables.
cramer(x, y)
x |
a contingency table ('matrix' or 'table' object). |
y |
ignored if |
Maxime HERVE <maxime.herve@univ-rennes1.fr>
var1 <- sample(LETTERS[1:3],30,replace=TRUE)
var2 <- sample(letters[1:3],30,replace=TRUE)
cramer(var1,var2)
# or cramer(table(var1,var2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.