Skip to contents

Core function to calculate R estimates from incidence data and serial interval probabilities.

Usage

calculate_r_estimates(
  incidence,
  si_prob,
  dates,
  si_mean,
  si_sd,
  si_dist,
  smoothing
)

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

Value

List with R and R_corrected vectors