View source: R/probabilities.R
state_process_logp | R Documentation |
If a Poisson renwal is being used, this calculates:
Pois(cases_true_t|Rt * \sum_tau=1^t_max w_t cases_true_t-tau)
or the following if a negative-binomial model is used:
NB(cases_true_t|Rt * \sum_tau=1^t_max w_t cases_true_t-tau, kappa)
state_process_logp(
cases_true,
cases_history,
Rt,
serial_parameters,
kappa = NULL,
is_negative_binomial = FALSE
)
cases_true |
true case count originating on day_onset |
cases_history |
a vector containing history of cases arranged from recent to past |
Rt |
effective reproduction number |
serial_parameters |
named list of 'mean' and 'sd' of gamma distribution characterising the serial interval distribution |
kappa |
overdispersion parameter |
is_negative_binomial |
if negative-binomial renewal model specified (defaults to FALSE) |
a log-probability or vector of log-probabilities
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.