Skip to contents

Generate synthetic incidence data from a known reproduction number

Usage

generate_synthetic_epidemic(
  true_r,
  si_mean,
  si_sd,
  si_dist = "gamma",
  initial_cases = 10
)

Arguments

true_r

Vector of true reproduction numbers

si_mean

Mean of serial interval

si_sd

SD of serial interval

si_dist

Serial interval distribution ("gamma" or "normal")

initial_cases

Number of initial cases

Value

Data frame with dates, true R, and incidence