Learn R Programming

PSIndependenceTest (version 0.0.1)

Lms4.stat: Logarithmic minimum test for independence in four-way contingency table

Description

Calculates the statistic of the Logarithmic minimum test for independence in four-way contingency table

Usage

Lms4.stat(nijtu)

Value

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

Arguments

nijtu

a numeric matrix with non-negative values of the four-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 x u contingency table,

References

Extension of the information contained in 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
Lms4.stat(GenTab4(array(1/16, dim = c(2, 2, 2, 2)), 160))
Lms4.stat(table5)

Run the code above in your browser using DataLab