cramer {RVAideMemoire} | R Documentation |
Cramer's association coefficient
Description
Computes the Cramer's association coefficient between 2 nominal variables.
Usage
cramer(x, y)
Arguments
x |
a contingency table ('matrix' or 'table' object). |
y |
ignored if |
Author(s)
Maxime HERVE <maxime.herve@univ-rennes1.fr>
Examples
var1 <- sample(LETTERS[1:3],30,replace=TRUE)
var2 <- sample(letters[1:3],30,replace=TRUE)
cramer(var1,var2)
# or cramer(table(var1,var2))
[Package RVAideMemoire version 0.9-83-7 Index]