riskratio {fmsb} | R Documentation |
Calculate risk ratio (a kind of relative risk) and its confidence intervals based on approximation, followed by null hypothesis (risk ratio equals to 1) testing.
riskratio(X, Y, m1, m2, conf.level=0.95)
X |
The number of disease occurence among exposed cohort. |
Y |
The number of disease occurence among non-exposed cohort. |
m1 |
The number of individuals in exposed cohort group. |
m2 |
The number of individuals in non-exposed cohort group. |
conf.level |
Probability for confidence intervals. Default is 0.95. |
estimate |
Calculated point estimate of risk ratio. |
conf.int |
A numeric vector of length 2 to give upper/lower limit of confidence intervals. |
p.value |
The significant probability of the result of null-hypothesis testing. |
Minato Nakazawa (minato-nakazawa[atmark]umin.net)
res <- riskratio(5,10,90,90) str(res) print(res)