View source: R/fisher_needed.R
fisher_needed | R Documentation |
Check wether Fisher's exact test is needed (or chi-square is ok)
fisher_needed(x = NULL, y = NULL, threshold = 5L, full_report = FALSE)
x |
first variable, a table or a matrix |
y |
second variable |
threshold |
cutoff value under indipendence |
full_report |
return a full report or only the
|
test <- matrix(c(1, 20, 15, 3), byrow = TRUE, ncol = 2)
fisher_needed(test)
fisher_needed(as.table(test))
TeaTasting <- matrix(c(3, 1, 1, 3), nrow = 2,
dimnames = list(Guess = c("Milk", "Tea"),
Truth = c("Milk", "Tea")))
fisher_needed(TeaTasting)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.