Lms2.pvalue | R Documentation |
Calculates the p-value of the logarithmic minimum test.
Lms2.pvalue(stat, nr, nc, n, B = 10000)
stat |
a logarithmic minimum statistic value |
nr |
a number of rows |
nc |
a number of columns |
n |
a sample size |
B |
an integer specifying the number of replicates used in the Monte Carlo test (optional) |
The p-value of the logarithmic minimum test for independence in r x c contingency table, data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAWElEQVR42mNgGPTAxsZmJsVqQApgmGw1yApwKcQiT7phRBuCzzCSDSHGMKINIeDNmWQlA2IigKJwIssQkHdINgxfmBBtGDEBS3KCxBc7pMQgMYE5c/AXPwAwSX4lV3pTWwAAAABJRU5ErkJggg==
The function returns the p-value of the logarithmic minimum test.
Piotr Sulewski, piotr.sulewski@apsl.edu.pl, Pomeranian University in Slupsk.
Sulewski, P. (2019). The LMS for Testing Independence in Two-way Contingency Tables. Biometrical Letters 56(1), 17-43
Lms2.pvalue(Lms2.stat(table1), 2, 2, 40, B = 1e3)
Lms2.pvalue(Lms2.stat(table2), 2, 3, 60, B = 1e2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.