nominalTest | R Documentation |
Depending on the value of the smallest expected count compute either a \chi^2
or Fisher's exact test.
nominalTest(tab, limit.exp = 5)
tab |
Frequency table, received by applying |
limit.exp |
If the smallest expected count is at most |
A list containing:
p |
The computed |
test |
A string indicating the test that was used. |
v1 <- as.factor(round(runif(40, 0, 3)))
v2 <- as.factor(round(runif(40, 2, 3)))
tab <- table(v1, v2)
nominalTest(tab)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.