Mod2.stat {PSIndependenceTest} | R 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)
[Package PSIndependenceTest version 0.0.1 Index]