Description Usage Arguments Details Value Examples
View source: R/FunctionsClinicalTrial.R
Function calculates and returns case-count efficacy confidence intervals estimated using Wald's method.
Input data need to contain information about disease status on individual level.
1 | waldCI(vaccinated, control, confLevel = 0.95)
|
vaccinated |
|
control |
|
confLevel |
numeric: value from (0, 1) interval, confidence level of interest |
Confidence interval of the relative risk is calculated using the Wald method. (Wald, A. Tests of statistical hypotheses concerning several parameters when the number of observations is large. Transactions of the American Mathematical Society 54, 426-482 (1943)).
Named list of lower and upper confidence interval bound
1 2 3 4 5 6 7 8 9 | # Loading vaccinated and control populations data with PoD information
data(vaccinated)
data(control)
# Estimating the disease status and case-count efficacy with 95\% confidence interval
set.seed(1)
CT <- ClinicalTrial(vaccinated, control, CI = 0.95)
waldCI(vaccinated, control)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.