Lms3.test {PSIndependenceTest} | R Documentation |
Logarithmic minimum test for independence in three-way contingency table
Description
Calculates the test statistic and p-value of the Logarithmic minimum test for independence in three-way contingency table
Usage
Lms3.test(nijt, B = 10000)
Arguments
nijt |
a numeric matrix with non-negative values of the three-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 Logarithmic minimum test for independence in r x c x t contingency table,
Value
The function returns values of the test statistic and p-value of the logarithmic minimum test.
Author(s)
Piotr Sulewski, piotr.sulewski@apsl.edu.pl, Pomeranian University in Slupsk.
References
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
Examples
Lms3.test(GenTab3(array(0.125, dim = c(2, 2, 2)), 80), B = 1e2)
Lms3.test(table4, B = 1e3)