fisherExactTest: Fisher's Exact Test

View source: R/fisherExactTest.R

fisherExactTestR Documentation

Fisher's Exact Test

Description

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

Usage

fisherExactTest(a, b, c, d, midpvalue = FALSE)

Arguments

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

Details

Wrapper function for the Rcpp functions fishersTestGreater and midPFishersTestGreater.

Value

p-value

References

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


bips-hb/pvm documentation built on Feb. 13, 2025, 3:32 a.m.