Lms3.pvalue | R Documentation |
Calculates the p-value of the Logarithmic minimum test for independence in three-way contingency table
Lms3.pvalue(stat, nr, nc, nt, n, B = 10000)
stat |
a Logarithmic minimum statistic value |
nr |
a number of rows |
nc |
a number of columns |
nt |
a number of tubes |
n |
a sample size |
B |
an integer specifying the number of replicates used in the Monte Carlo test (optional) |
The Critical value of the modular test for independence in r x c x t contingency table,
The function returns the p-value of the logarithmic minimum test.
Piotr Sulewski, piotr.sulewski@apsl.edu.pl, Pomeranian University in Slupsk.
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
tab1 = GenTab3(array(0.125, dim = c(2, 2, 2)), 100)
Lms3.pvalue(Lms3.stat(tab1), 2, 2, 2, 100, B=1e2)
Lms3.pvalue(Lms3.stat(table4), 2, 2, 2, 80, B = 1e3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.