binary_or: Binary Odds Ratio
Description
Calculates odds ratio across categories for binary data.
Usage
binary_or(dt, num_col, reference, digits)
Value
A dataframe with computed odds ratios between pairs of columns for binary data, as well as an overall chi-squared test across all groups.
Arguments
- dt
the name of the dataframe object.
- num_col
the number of categorical columns in the data.
- reference
the name of the reference row category to use.
- digits
significant digits to use.