powered by
Calculates the statistic of the modular test for independence in two-way contingency table (see Sulewski P. (2016)).
Mod2.stat(nij)
The function returns the value of the modular test statistic.
a numeric matrix with non-negative values of the two-way contingency table cells
Piotr Sulewski, piotr.sulewski@apsl.edu.pl, Pomeranian University in Slupsk.
The statistic of the modular test for independence in r x c contingency table, see formula (2) in the article.
Sulewski, P. (2016). Moc testów niezależności w tablicy dwudzielczej większej niż 2×2, Przegląd statystyczny 63(2), 190-210
tab5=GenTab2(matrix(1/12, nrow = 3, ncol = 4), 60) Mod2.stat(tab5) Mod2.stat(table1)
Run the code above in your browser using DataLab