Learn R Programming

PSIndependenceTest (version 0.0.1)

Mod4.pvalue: MOdular test for independence in four-way contingency table

Description

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

Usage

Mod4.pvalue(stat, nr, nc, nt, nu, n, B = 10000)

Value

The function returns the p-value of the modular test.

Arguments

stat

a Logarithmic minimum statistic value

nr

a number of rows

nc

a number of columns

nt

a number of tubes

nu

a number of

n

a sample size

B

an integer specifying the number of replicates used in the Monte Carlo test (optional)

Author

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

Details

The Critical value of the modular test for independence in r x c x t x u contingency table,

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

Run this code
Mod4.pvalue(Mod4.stat(table6), 2, 2, 2, 2, 160, B = 1e2)
Mod4.pvalue(Mod4.stat(table6), 2, 2, 2, 2, 160, B = 1e3)

Run the code above in your browser using DataLab