OptionalalternativeAlternative hypothesis: "two.sided", "less" or "greater". Default "two.sided".
Unambiguous abbreviations are accepted. Used for 2 x 2 tables only.
OptionalBNumber of replicates for simulatePValue. Default 2000.
OptionalconfCompute a confidence interval for the odds ratio (2 x 2 tables only). Default true.
OptionalconfConfidence level of the interval (2 x 2 tables only). Default 0.95.
OptionalmidpThe mid-p version of the test of a 2 x 2 table (as exact2x2::fisher.exact(x, midp = TRUE)): the p-value and the
confidence limits from the mid-p tails P(X < x) + P(X = x)/2 and P(X > x) + P(X = x)/2 of the (1, 1) cell; the
two-sided p-value is twice the smaller tail (the central test) and the estimate stays the conditional MLE. An error
for larger tables. Default false.
OptionalorOdds ratio under the null hypothesis (2 x 2 tables only). Default 1.
OptionalsimulateCompute the p-value of an r x c table (larger than 2 x 2) by Monte Carlo simulation with B replicates (R's
simulate.p.value), using the random stream of setSeed as R does. Ignored for 2 x 2 tables. Default
false.
Options for fisherTest.