Mod3.stat | R Documentation |
Calculates the statistic of the modular test for independence in three-way contingency table (see Sulewski P. (2018)).
Mod3.stat(nijt)
nijt |
a numeric matrix with non-negative values of the three-way contingency table cells |
The statistic of the modular test for independence in r x c x t contingency table, see formula (6) in the article.
The function returns the value of the modular test statistic.
Piotr Sulewski, piotr.sulewski@apsl.edu.pl, Pomeranian University in Slupsk.
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
Mod3.stat(GenTab3(array(0.125, dim = c(2, 2, 2)), 100))
Mod3.stat(table4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.