risk.ratio {epitools}R Documentation

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)

Details

This function Calculates the risk 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. 81-82

See Also

See also odds.ratio, epitab

Examples

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

[Package Contents]