confIntOddsRatio {biostatUZH} | R Documentation |
A methods to compute a confidence interval for an odds ratio
is provided. The method is based on a Wald interval for the log odds
ratio. Used by confIntDiagnostic
confIntOddsRatio(x, n, conf.level = 0.95)
x |
vector of length 2, number of successes in each group. |
n |
vector of length 2, total number of trials in each group. |
conf.level |
Confidence level for confidence interval. |
A vector containing the odds ratio and the limits of the confidence interval.
Leonhard Held
DG Altman, D Machin, TN Bryant, MJ Gardner: Statistics with confidence, 2nd Edition, 2000, Chapter 7
x <- c(30, 50) n <- c(100, 120) confIntOddsRatio(x, n)