View source: R/simulated-data.R
true_cases_single | R Documentation |
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).
true_cases_single(Rt, kappa, cases_history, weights)
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 |
a count of cases
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.