Learn R Programming

PSIndependenceTest (version 0.0.1)

Mod2.cv: Modular test for independence in two-way contingency table

Description

Calculates the critical value of the modular test for independence in two-way contingency table see formula (9) in the article.

Usage

Mod2.cv(nr, nc, n, alfa, B = 10000)

Value

The function returns the critical value of the modular test.

Arguments

nr

a number of rows

nc

a number of columns

n

a sample size

alfa

a significance level

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 contingency table, see formula (2) in the article.

References

Sulewski, P. (2016). Moc testów niezależności w tablicy dwudzielczej większej niż 2×2, Przegląd statystyczny 63(2), 190-210

Examples

Run this code
Mod2.cv(2, 2, 40, 0.05, B = 1e2)
Mod2.cv(2, 3, 60, 0.1)

Run the code above in your browser using DataLab