odds.ratio {epitools} | R Documentation |
Calculates odds ratio and confidence interval with and without a smallsample adjustment
odds.ratio(ca1, co1, ca0, co0, conf.level = 0.95)
ca1 |
number of exposed cases |
co1 |
number of exposed controls |
ca0 |
number of unexposed cases |
co0 |
number of unexposed controls |
conf.level |
confidence level (default = 0.95) |
This function Calculates the odds ratio and confidence interval, with and without a small sample adjustment, for a 2 x 2 table.
$data |
Original data with marginal totals included |
$p.value |
Fishers Exact Test from 'fisher.test' |
$conf.level |
Confidence level |
$crude |
Estimate and confidence limits |
$adjusted |
Estimate and confidence limits with small sample adjustment |
Visit http://www.epitools.net for the latest.
Tomas Aragon, aragon@berkeley.edu, http://www.medepi.net/aragon
Jewell NP. Statistics for Epidemiology, 1st Edition, 2004, Chapman & Hall, pp. 73-81
See also risk.ratio
, epitab
##From Jewell (2004), p. 79 odds.ratio(347, 555, 20, 88)