View source: R/fisherExactTest.R
fisherExactTest | R Documentation |
Performs the (one-sided) Fisher's exact test to a collection of 2 x 2 tables of the form:
event | not event | |
drug | a | c |
not drug | b | d
|
fisherExactTest(a, b, c, d, midpvalue = FALSE)
a |
A vector with the counts of the upper left corner of the tables |
b |
A vector with the counts of the lower left corner of the tables |
c |
A vector with the counts of the upper right corner of the tables |
d |
A vector with the counts of the lower right corner of the tables |
midpvalue |
The mid-p-value correction (suggested by Agresti) is applied |
Wrapper function for the Rcpp
functions fishersTestGreater
and midPFishersTestGreater
.
p-value
Ahmed, I., Dalmasso, C., Haramburu, F., Thiessard, F., Bro\"et, P., & Tubert-Bitter, P. (2010). False Discovery Rate Estimation for Frequentist Pharmacovigilance Signal Detection Methods. Biometrics, 66(1), 301–309. https://doi.org/10.1111/j.1541-0420.2009.01262.x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.