
Depending on the value of the smallest expected count compute either a
nominalTest(tab, limit.exp = 5)
A list containing:
The computed
A string indicating the test that was used.
Frequency table, received by applying table()
to two nominal variables.
If the smallest expected count is at most limit.exp
the
v1 <- as.factor(round(runif(40, 0, 3)))
v2 <- as.factor(round(runif(40, 2, 3)))
tab <- table(v1, v2)
nominalTest(tab)
Run the code above in your browser using DataLab