posthoc_test.RdComputes one-sided Fisher’s exact tests comparing increasing levels of the categorical variable with 3 levels (1 vs. 2; 2 vs. 3)
posthoc_test(data, x, y)
| data | tbl. Input data |
|---|---|
| x | character. Name of a categorical variable with r levels |
| y | character. Name of a categorical variable with 2 levels |
tbl. Data frame with p-value for the test, odds ratio, and adjusted inverse hyperbolic sine CIs for both comparisons