powered by
Simple function to calculate effect sizes for frequency tables.
cramerV(x)
A numeric value with Phi for 2 x 2 tables or Cramer's V for tables larger than 2 x 2.
A frequency table, such as from xtabs().
xtabs()
cramerV(xtabs(~ am + vs, data = mtcars)) cramerV(xtabs(~ cyl + vs, data = mtcars)) cramerV(xtabs(~ cyl + am, data = mtcars))
Run the code above in your browser using DataLab