Learn R Programming

questionr (version 0.7.8)

cramer.v: Compute Cramer's V of a two-way frequency table

Description

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

Usage

cramer.v(tab)

Arguments

tab

table on which to compute the statistic

Examples

Run this code
data(Titanic)
tab <- apply(Titanic, c(4,1), sum)
#' print(tab)
cramer.v(tab)

Run the code above in your browser using DataLab