Fisher exact test¶

FisherExactTest
(a::Integer, b::Integer, c::Integer, d::Integer)¶ Perform Fisher’s exact test of the null hypothesis that the success probabilities
a/c
andb/d
are equal, that is the odds ratio(a/c) / (b/d)
is one, against the alternative hypothesis that they are not equal.The contingency table is structured as:
X1 X1 Y1 a b Y2 c d Note
The print output contains the conditional maximum likelihood estimate of the oddratio rather than the sample odds ratio; it maximizes the likelihood given by Fisher’s noncentral hypergeometric distribution.
References:
 Fay, M.P. Supplementary material to Confidence intervals that match Fisher’s exact or Blaker’s exact tests. Biostatistics, 0(0): 113, 2009.