Lms2.test {PSIndependenceTest}R Documentation

Logarithmic Minimum Test for Independence in Two-Way Contingency Table

Description

Calculates the test statistic and p-value of the logarithmic minimum test.

Usage

Lms2.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 he logarithmic minimum test for independence in r x c 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. (2019). The LMS for Testing Independence in Two-way Contingency Tables. Biometrical Letters 56(1), 17-43

Examples

Lms2.test(GenTab2(matrix(1/6, nrow = 2, ncol = 3), 50), B = 1e2)
Lms2.test(table2, B = 1e3)


[Package PSIndependenceTest version 0.0.1 Index]