Learn R Programming

epitools (version 0.09)

odds.ratio: Risk 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)

Value

  • $dataOriginal data with marginal totals included
  • $p.valueFishers Exact Test from 'fisher.test'
  • $conf.levelConfidence level
  • $crudeEstimate and confidence limits
  • $adjustedEstimate and confidence limits with small sample adjustment

Details

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

References

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

See Also

See also risk.ratio, epitab

Examples

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

Run the code above in your browser using DataLab