Mod2.stat | R Documentation |
Calculates the statistic of the modular test for independence in two-way contingency table (see Sulewski P. (2016)).
Mod2.stat(nij)
nij |
a numeric matrix with non-negative values of the two-way contingency table cells |
The statistic of the modular test for independence in r x c contingency table, see formula (2) in the article.
The function returns the value of the modular test statistic.
Piotr Sulewski, piotr.sulewski@apsl.edu.pl, Pomeranian University in Slupsk.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.