fishertest
Fisher exact test for a 2-by-2 table.
📝Syntax
h = fishertest(x)
[h, p, stats] = fishertest(x)
[h, p, stats] = fishertest(x, Name, Value)
📄Description

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.

💡Examples
x = [3 6; 1 7];
[h, p, stats] = fishertest(x, 'Tail', 'right')
🔗See Also
crosstabchi2gofnorminv
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub