odds.ratio {epitools}R Documentation

Odds ratio estimation and confidence intervals

Description

Calculates odds ratio and confidence interval with and without a smallsample adjustment

Usage

odds.ratio(ca1, co1, ca0, co0, conf.level = 0.95)

Arguments

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)

Details

This function Calculates the odds ratio and confidence interval, with and without a small sample adjustment, for a 2 x 2 table.

Value

$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

Note

Visit http://www.epitools.net for the latest.

Author(s)

Tomas Aragon, aragon@berkeley.edu, http://www.medepi.net/aragon

References

Jewell NP. Statistics for Epidemiology, 1st Edition, 2004, Chapman & Hall, pp. 73-81

See Also

See also risk.ratio, epitab

Examples

##From Jewell (2004), p. 79
odds.ratio(347, 555, 20, 88)

[Package Contents]