enw_fit_opts | R Documentation |
Format model fitting options for use with stan
enw_fit_opts(
sampler = epinowcast::enw_sample,
nowcast = TRUE,
pp = FALSE,
likelihood = TRUE,
likelihood_aggregation = c("snapshots", "groups"),
threads_per_chain = 1L,
debug = FALSE,
output_loglik = FALSE,
sparse_design = FALSE,
...
)
sampler |
A function that creates an object that be used to extract
posterior samples from the specified model. By default this is |
nowcast |
Logical, defaults to |
pp |
Logical, defaults to |
likelihood |
Logical, defaults to |
likelihood_aggregation |
Character string, aggregation over which
stratify the likelihood when
Note that some model modules override this setting depending on model
requirements. For example, the |
threads_per_chain |
Integer, defaults to |
debug |
Logical, defaults to |
output_loglik |
Logical, defaults to |
sparse_design |
Logical, defaults to |
... |
Additional arguments to pass to the fitting function being used
by |
A list containing the specified sampler function, data as a list specifying the fitting options to use, and additional arguments to pass to the sampler function when it is called.
Model modules
enw_expectation()
,
enw_missing()
,
enw_obs()
,
enw_reference()
,
enw_report()
# Default options along with settings to pass to enw_sample
enw_fit_opts(iter_sampling = 1000, iter_warmup = 1000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.