Skip to contents

(n - 1) (ad - bc)^2 / ((a + b) (c + d) (a + c) (b + d)) on 1 df (Hedderich, Sachs & Reynarowych 2023, eq 7.277).

Usage

chin1(table)

Arguments

table

2 x 2 matrix of counts.

Value

Named list: statistic, df, p_value.

References

Campbell, I. (2007). Statistics in Medicine 26, 3661-3675.

Examples

chin1(matrix(c(1, 5, 5, 1), 2, byrow = TRUE))$statistic
#> [1] 4.888889