rateratio {fmsb} | R Documentation |
Calculate rate ratio (a kind of relative risk) and its confidence intervals based on approximation, followed by null hypothesis (rate ratio equals to 1) testing.
rateratio(a, b, PT1, PT0, conf.level=0.95)
a |
The number of disease occurence among exposed cohort. |
b |
The number of disease occurence among non-exposed cohort. |
PT1 |
The observed person-time in exposed cohort group. |
PT0 |
The observed person-time in non-exposed cohort group. |
conf.level |
Probability for confidence intervals. Default is 0.95. |
estimate |
Calculated point estimate of rate 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 <- rateratio(136,1709,22050,127650) str(res) print(res)