Lms4.test | R Documentation |
Calculates the test statistic and p-value of the Logarithmic minimum test for independence in four-way contingency table
Lms4.test(nijtu, B = 10000)
nijtu |
a numeric matrix with non-negative values of the four-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 the Logarithmic minimum test for independence in r x c x t x u 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.
Extension of the information contained in Sulewski, P. (2021). Logarithmic Minimum Test for Independence in Three Way Con-tingency Table of Small Sizes, Journal of Statistical Computation and Simulation 91(13), 2780-2799
Lms4.test(GenTab4(array(1/16, dim = c(2, 2, 2, 2)), 160), B = 1e2)
Lms4.test(table6, B = 1e3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.