Learn R Programming

PSIndependenceTest (version 0.0.1)

Lms3.stat: 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)

Value

The function returns the value of the logarithmic minimum test statistic.

Arguments

nijt

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

Author

Piotr Sulewski, piotr.sulewski@apsl.edu.pl, Pomeranian University in Slupsk.

Details

The statistic of Logarithmic minimum test for independence in r x c x t contingency table, see formula (6) in the article.

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

Run this code
Lms3.stat(table3)
Lms3.stat(GenTab3(array(1/12, dim=c(2,2,3)), 120))

Run the code above in your browser using DataLab