Lms2.stat {PSIndependenceTest}R Documentation

Logarithmic Minimum Test for Independence in Two-Way Contingency Table

Description

Calculates the logarithmic minimum statistics (see Sulewski P. (2019)).

Usage

Lms2.stat(nij)

Arguments

nij

a numeric matrix with non-negative values of the two-way contingency table cells

Details

The statistic of the logarithmic minimum test for independence in r x c contingency table, see formula (4) and example 3 in the article.

Value

The function returns the value of the logarithmic minimum test statistic

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.stat(table1)
Lms2.stat(table2)


[Package PSIndependenceTest version 0.0.1 Index]