This function creates a plot of odds ratios with 95 for a 2xk (where k >= 2) contingency table.
visualize_odds_ratios(
ctable,
reference.level = 1,
row.level = 1,
or.alpha = 0.05
)
A plot of odds ratios with 95
A 2xk (where k >= 2) contingency table as a matrix or data frame with row and column names.
The index of the reference level for odds ratio calculations (default: 1). The user must select the column level to serve as the reference level.
The index of the row category to be used in odds ratio calculations (1 or 2). The user must select the row level to which the calculation of the odds ratios make reference (default: 1).
The significance level used for the confidence intervals (default: 0.05).