epitools (version 0.09)

risk.ratio: Risk ratio estimation and confidence intervals

Description

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

Usage

risk.ratio(x1, n1, x0, n0, conf.level = 0.95)

Arguments

x1
number of events among the exposed
n1
number of total exposed
x0
number of events among the non-exposed
n0
number of total unexposed
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 risk 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. 81-82

See Also

See also odds.ratio, epitab

Examples

Run this code
##From Jewell (2004), p. 83
risk.ratio(178, 1589, 79, 1565)

Run the code above in your browser using DataLab