View source: R/confIntDiagnostic.R
confIntRiskRatio | R Documentation |
Provides a confidence interval for a risk ratio. The method is based on the Wald interval for the log risk ratio.
confIntRiskRatio(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. Default value is 0.95. |
A vector containing the risk 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
confIntDiagnostic
, confIntRiskRatio
,
confIntOddsRatio
.
x <- c(30, 50)
n <- c(100, 120)
confIntRiskRatio(x = x, n = n)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.