Skip to contents

Cramer's V for categorical association

Usage

morie_cramers_v(contingency_table)

Arguments

contingency_table

A numeric matrix of observed counts.

Value

Numeric Cramer's V in the interval [0, 1].

Examples

morie_cramers_v(matrix(c(10, 20, 30, 40), nrow = 2))
#> [1] 0.08908708