View source: R/confIntRateRatio.R
confIntRateRatio | R Documentation |
A method to compute a confidence interval for a rate ratio is provided. The method is based on a Wald interval for the log rate ratio.
confIntRateRatio(x, t, conf.level = 0.95)
x |
A vector of length 2 containing the number of events in each group. |
t |
A numeric vector of length 2 containing the total observation time in each group. |
conf.level |
A numeric vector of length 1 containing the confidence level for the confidence interval. |
A named numeric vector of length 3 containing the rate ratio and the limits of the confidence interval.
Leonhard Held
Held, L., Rufibach, K. and Seifert, B. (2013) Medizinische Statistik - Konzepte, Methoden, Anwendungen. Section 8.3.
link[biostatUZH]{confIntRateDiff}
x <- c(30, 50)
t <- c(100, 120)
confIntRateRatio(x, t)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.