This function computes Cramer's V for a two-way frequency table

cramer.v(tab)

Arguments

tab

table on which to compute the statistic

Examples

data(Titanic)
tab <- apply(Titanic, c(4,1), sum)
#' print(tab)
cramer.v(tab)
#> [1] 0.2941201