Computes Fisher's exact test for 2 x 2 contingency tables.

fisher_test(data, x, y, alternative = "greater")

Arguments

data

tbl. Input data

x, y

character. Variable names

alternative

character. Alternative hypothesis, Default: "greater"

Value

tbl. Data frame with p-value for the test, odds ratio, and adjusted inverse hyperbolic sine CIs

See also