true_cases_single: Generates true cases for a single day

View source: R/simulated-data.R

true_cases_singleR Documentation

Generates true cases for a single day

Description

Cases are assumed to be generated by a negative-binomial renewal process:

cases_t \sim neg-binomial(Rt \sum_s=1^\infty w(s) cases_t-s, kappa)

where kappa is the over-dispersion parameter. Here, we truncate this sum at a user specified lag (determined by the length of the weight vector).

Usage

true_cases_single(Rt, kappa, cases_history, weights)

Arguments

Rt

effective reproduction number

kappa

over-dispersion parameter of negative binomial

cases_history

a vector containing history of cases arranged from recent to past

weights

a vector containing weights representing the serial interval distribution

Value

a count of cases


ben18785/incidenceinflation documentation built on Feb. 8, 2024, 2:36 a.m.