This function calculates the odds ratio for a 2 X 2 contingency table and a
confidence interval (default conf.level is 95 percent) for the
estimated odds ratio. x should be a matrix, data frame or table. "Successes"
should be located in column 1 of x, and the treatment of interest
should be located in row 2. The odds ratio is calculated as (Odds row 2) /
(Odds row 1). The confidence interval is calculated from the log(OR) and
backtransformed.
Usage
oddsRatio(x, conf.level = 0.95)
## S3 method for class 'oddsRatio':
print(x, digits = 4, ...)