Lms3.stat {PSIndependenceTest}R Documentation

Logarithmic minimum test for independence in three-way contingency table

Description

Calculates the statistic of the Logarithmic minimum test for independence in three-way contingency table (see Sulewski P. (2018)).

Usage

Lms3.stat(nijt)

Arguments

nijt

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

Details

The statistic of Logarithmic minimum test for independence in r x c x t contingency table, see formula (6) 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. (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.stat(table3)
Lms3.stat(GenTab3(array(1/12, dim=c(2,2,3)), 120))


[Package PSIndependenceTest version 0.0.1 Index]