fisher_test.RdComputes Fisher's exact test for 2 x 2 contingency tables.
fisher_test(data, x, y, alternative = "greater")
| data | tbl. Input data |
|---|---|
| x, y | character. Variable names |
| alternative | character. Alternative hypothesis, Default: "greater" |
tbl. Data frame with p-value for the test, odds ratio, and adjusted inverse hyperbolic sine CIs