Description Usage Arguments Value
Simplifies the call to the posterior function using closures. This function is set up to work with the lazymcmc package, found at github.com/jameshay218/lazymcmc
1 | create_posterior(parTab, data, PRIOR_FUNC, ...)
|
parTab |
the parameter table. See |
data |
the microcephaly data. See |
PRIOR_FUNC |
pointer to a function to calculate prior values. Can take "pars" and "..." as arguments, where "pars" is the model parameters. |
incDat |
should also include incidence data, though this can be left as NULL. See |
peakTimes |
include data on epidemic peak time ranges. Can be left as NULL. See |
ts |
time vector over which to solve the ODE model |
version |
usually just leave this as "binomial", indicating assumed binomially distributed errors. I've added a "forecast" version which expects parameters to do with the lack of second wave. |
a single value for the posterior
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.