waldCI {PoDBAY} | R Documentation |
Wald confidence interval estimation
Description
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.
Usage
waldCI(vaccinated, control, confLevel = 0.95)
Arguments
vaccinated |
|
control |
|
confLevel |
numeric: value from (0, 1) interval, confidence level of interest |
Details
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)).
Value
Named list of lower and upper confidence interval bound
Examples
# 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)
[Package PoDBAY version 1.4.3 Index]