
Exact confidence intervals for vaccine or prevention efficacy
Source:R/ciBinomialExact.R
ciBinomialExact.RdComputes a fixed-look Clopper–Pearson confidence interval for vaccine or prevention efficacy after conditioning on the total number of events.
Usage
ciBinomialExact(
x,
n,
ratio = 1,
conf.level = 0.95,
alternative = c("two.sided", "lower", "upper")
)Value
A one-row data frame containing the observed counts, randomization ratio, efficacy estimate, confidence limits, and confidence level.
Details
Conditional on n, x is binomial with event probability
p in the experimental group. Clopper–Pearson limits for p
are transformed using
efficacy = 1 - p / (ratio * (1 - p)). Because this transformation is
decreasing, the probability limits are reversed on the efficacy scale.
The same calculation applies to vaccine efficacy (VE) and prevention
efficacy (PE).