Description Usage Arguments Value Author(s) See Also Examples
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 or data.frame. "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.
1  | odds.ratio(x, conf.level = 0.95)
 | 
x | 
 a 2 X 2 matrix or data.frame of counts  | 
conf.level | 
 the confidence interval level  | 
p1, p2 | 
 Proportions for rows 1 and 2  | 
o1, o2 | 
 Odds for rows 1 and 2  | 
OR | 
 Odds ratio  | 
lower | 
 the lower bound of the confidence interval  | 
upper | 
 the upper bound of the confidence interval  | 
conf.level | 
 the confidence interval level  | 
Kevin Middleton (kmm@csusb.edu)
1 2 3 4 5 6 7 8 9  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.