GenTab2 | R Documentation |
Generating a two-way contingency table r x c
GenTab2(pij, n)
pij |
a numeric matrix with non-negative probability values of the two-way contingency table |
n |
a sample size |
Generating a two-way contingency table r x c using the probability matrix pij. If Ho is true then pij equals 1 / r / c.
The function returns the two-way contingency table r x c
Piotr Sulewski, piotr.sulewski@apsl.edu.pl, Pomeranian University in Slupsk.
Sulewski, P. (2016). Moc testów niezależności w tablicy dwudzielczej większej niż 2×2, Przegląd statystyczny 63(2), 190-210
r = 6; c = 2
GenTab2(array(1 / r / c, dim = c(r, c)), 93)
GenTab2(matrix(c(0.125,0.25,0.25,0.375), nrow=2), 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.