Mod3.stat {PSIndependenceTest}R Documentation

Modular test for independence in three-way contingency table

Description

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

Usage

Mod3.stat(nijt)

Arguments

nijt

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

Details

The statistic of the modular 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 modular test statistic.

Author(s)

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

References

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

Mod3.stat(GenTab3(array(0.125, dim = c(2, 2, 2)), 100))
Mod3.stat(table4)


[Package PSIndependenceTest version 0.0.1 Index]