View source: R/visualize_odds_ratios.R
visualize_odds_ratios | R Documentation |
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
)
ctable |
A 2xk (where k >= 2) contingency table as a matrix or data frame with row and column names. |
reference.level |
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. |
row.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). |
or.alpha |
The significance level used for the confidence intervals (default: 0.05). |
A plot of odds ratios with 95
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.