oddsratio {fmsb} | R Documentation |
Calculate odds ratio and its confidence intervals based on approximation, followed by null-hypothesis (odds ratio equals to 1) testing.
oddsratio(a, b, c, d, conf.level=0.95)
a |
The number of individuals who both suffer from exposure and disease. |
b |
The number of individuals who suffer from disesase but not exposed. |
c |
The number of individuals who suffer from exposure but are healthy. |
d |
The number of individuals who neither suffered from exposure nor disease. |
conf.level |
Probability for confidence intervals. Default is 0.95. |
estimate |
Calculated point estimate of odds ratio. |
conf.int |
A numeric vector of length 2 to give upper/lower limit of confidence intervals. |
p.value |
The significant probability as the result of null-hypothesis testing. |
Minato Nakazawa (minato-nakazawa[atmark]umin.net)
res <- oddsratio(5,10,85,80) str(res) print(res)