Skip to contents

Calculates confidence intervals using bootstrap resampling.

Usage

calculate_bootstrap_ci(
  incidence,
  si_prob,
  dates,
  si_mean,
  si_sd,
  si_dist,
  smoothing,
  n_bootstrap,
  conf_level
)

Arguments

incidence

Vector of case counts

si_prob

Matrix of serial interval probabilities

dates

Vector of dates

si_mean

Mean of the serial interval

si_sd

Standard deviation of the serial interval

si_dist

Distribution type

smoothing

Smoothing window size

n_bootstrap

Number of bootstrap samples

conf_level

Confidence level

Value

List with lower and upper bounds for R and R_corrected