h = fishertest(x)
[h, p, stats] = fishertest(x)
[h, p, stats] = fishertest(x, Name, Value)
fishertest performs Fisher's exact test for a 2-by-2 contingency table. The input can be a numeric matrix or a table containing nonnegative integer counts.
Name-value arguments include Alpha and Tail. The stats output contains OddsRatio and ConfidenceInterval.
x = [3 6; 1 7];
[h, p, stats] = fishertest(x, 'Tail', 'right')
| Version | Description |
|---|---|
| 2.0.0 | initial version |