Lms2.test | R Documentation |
Calculates the test statistic and p-value of the logarithmic minimum test.
Lms2.test(nij, B = 10000)
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) |
The test statistic and p-value of he logarithmic minimum test for independence in r x c contingency table,
The function returns values of the test statistic and p-value of the logarithmic minimum test.
Piotr Sulewski, piotr.sulewski@apsl.edu.pl, Pomeranian University in Slupsk.
Sulewski, P. (2019). The LMS for Testing Independence in Two-way Contingency Tables. Biometrical Letters 56(1), 17-43
Lms2.test(GenTab2(matrix(1/6, nrow = 2, ncol = 3), 50), B = 1e2)
Lms2.test(table2, B = 1e3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.