extract_inits | R Documentation |
Extracts posterior samples to use to initialise a full model fit. This may
be useful for certain data sets where the sampler gets stuck or cannot
easily be initialised. In estimate_infections()
, epinow()
and
regional_epinow()
this option can be engaged by setting
stan_opts(init_fit = <stanfit>)
.
This implementation is based on the approach taken in epidemia authored by James Scott.
extract_inits(fit, current_inits, exclude_list = NULL, samples = 50)
fit |
A |
current_inits |
A function that returns a list of initial conditions
(such as |
exclude_list |
A character vector of parameters to not initialise from
the fit object, defaulting to |
samples |
Numeric, defaults to 50. Number of posterior samples. |
A function that when called returns a set of initial conditions as a named list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.