View source: R/fishertest.ANSM.R
fishertest.ANSM | R Documentation |
fishertest.ANSM()
is a wrapper for fisher.test() from the stats
package - performs the Fisher exact test and is used in chapters 6, 12 and 13 of "Applied Nonparametric Statistical Methods" (5th edition)
fishertest.ANSM(
x,
y,
H0 = NULL,
alternative = c("two.sided", "less", "greater"),
max.exact.cases = 10000,
do.exact = TRUE
)
x |
Numeric vector or factor |
y |
Numeric vector or factor |
H0 |
Null hypothesis value (defaults to |
alternative |
Type of alternative hypothesis (defaults to |
max.exact.cases |
Maximum number of cases allowed for exact calculations (defaults to |
do.exact |
Boolean indicating whether or not to perform exact calculations (defaults to |
An ANSMtest object with the results from applying the function
# Example 6.7 from "Applied Nonparametric Statistical Methods" (5th edition)
fishertest.ANSM(ch6$males, ch6$females)
# Exercise 13.10 from "Applied Nonparametric Statistical Methods" (5th edition)
fishertest.ANSM(ch13$laid.off, ch13$employee.ages)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.