Learn R Programming

PSIndependenceTest (version 0.0.1)

Lms3.cv: Logarithmic minimum test for independence in three-way contingency table

Description

Calculates the critical value of the Logarithmic minimum test for independence in three-way contingency table (see Sulewski P. (2018)).

Usage

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

Value

The function returns the critical value of the logarithmic minimum test.

Arguments

nr

a number of rows

nc

a number of columns

nt

a number of tubes

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 Logarithmic minimum test for independence in r x c x t contingency table,

References

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

Examples

Run this code
Lms3.cv(2, 2, 2, 80, 0.05, B = 1e2)
Lms3.cv(2, 2, 2, 80, 0.1, B = 1e3)

Run the code above in your browser using DataLab