risk.ratio {epitools} | R Documentation |
Calculates risk ratio and confidence interval with and without a smallsample adjustment
risk.ratio(x1, n1, x0, n0, conf.level = 0.95)
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) |
This function Calculates the risk 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. 81-82
See also odds.ratio
, epitab
##From Jewell (2004), p. 83 risk.ratio(178, 1589, 79, 1565)