Generates bootstrap confidence intervals for reproduction number estimates by resampling the incidence data multiple times and calculating quantiles of the resulting R distributions.
calculate_bootstrap_ci(
incidence,
si_prob,
dates,
si_mean,
si_sd,
si_dist,
smoothing,
n_bootstrap,
conf_level
)named list with confidence interval bounds:
r_lower, r_upper: Confidence intervals for raw R estimates
r_corrected_lower, r_corrected_upper: Confidence intervals for corrected R estimates
numeric vector; daily case counts
numeric matrix; serial interval probability matrix
vector; dates corresponding to incidence data
numeric; mean of the serial interval distribution
numeric; standard deviation of the serial interval distribution
character; distribution type, either "gamma" or "normal"
integer; window size for temporal smoothing
integer; number of bootstrap samples to generate
numeric; confidence level (between 0 and 1)