Mod4.stat: Modular test for independence in four-way contingency table

View source: R/Mod4.stat.R

Mod4.statR Documentation

Modular test for independence in four-way contingency table

Description

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

Usage

Mod4.stat(nijtu)

Arguments

nijtu

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

Details

The statistic of Logarithmic minimum test for independence in r x c x t x u contingency table,

Value

The function returns the value of the modular test statistic.

Author(s)

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

References

Extension of the information contained in Sulewski, P. (2018). Power Analysis Of Independence Testing for the Three-Way Con-tingency Tables of Small Sizes. Journal of Applied Statistics 45(13), 2481-2498

Examples

Mod4.stat(GenTab4(array(1/16, dim = c(2, 2, 2, 2)), 100))
Mod4.stat(table6)


PSIndependenceTest documentation built on Sept. 15, 2023, 1:08 a.m.