Mod2.test {PSIndependenceTest} | R Documentation |
Modular test for independence in two-way contingency table
Description
Calculates the test statistic and p-value of the modular test for independence in two-way contingency table
Usage
Mod2.test(nij, B = 10000)
Arguments
nij |
a numeric matrix with non-negative values of the two-way contingency table cells |
B |
an integer specifying the number of replicates used in the Monte Carlo test (optional) |
Details
The test statistic and p-value of the modular test for independence in r x c contingency table,
Value
The function returns values of the test statistic and p-value of the modular test.
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
pij=matrix(1/4, nrow = 2, ncol = 2)
Mod2.test(GenTab2(pij, 50), B = 1e3)
Mod2.test(table1, B = 1e2)
[Package PSIndependenceTest version 0.0.1 Index]