Mod2.stat: Modular test for independence in two-way contingency table

View source: R/Mod2.stat.R

Mod2.statR Documentation

Modular test for independence in two-way contingency table

Description

Calculates the statistic of the modular test for independence in two-way contingency table (see Sulewski P. (2016)).

Usage

Mod2.stat(nij)

Arguments

nij

a numeric matrix with non-negative values of the two-way contingency table cells

Details

The statistic of the modular test for independence in r x c contingency table, see formula (2) in the article.

Value

The function returns the value of the modular test statistic.

Author(s)

Piotr Sulewski, piotr.sulewski@apsl.edu.pl, Pomeranian University in Slupsk.

References

Sulewski, P. (2016). Moc testów niezależności w tablicy dwudzielczej większej niż 2×2, Przegląd statystyczny 63(2), 190-210

Examples

tab5=GenTab2(matrix(1/12, nrow = 3, ncol = 4), 60)
Mod2.stat(tab5)
Mod2.stat(table1)


PSIndependenceTest documentation built on Sept. 15, 2023, 1:08 a.m.