Mod2.cv {PSIndependenceTest}R Documentation

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)

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)

Details

The Critical value of the modular test for independence in r x c contingency table, see formula (2) in the article.

Value

The function returns the critical value of the modular test.

Author(s)

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

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

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


[Package PSIndependenceTest version 0.0.1 Index]