stan_opts {EpiNow2} | R Documentation |
Stan Options
Description
Defines a list specifying the arguments passed to underlying stan
backend functions via rstan_sampling_opts()
and rstan_vb_opts()
. Custom
settings can be supplied which override the defaults.
Usage
stan_opts(
samples = 2000,
backend = "rstan",
init_fit = NULL,
return_fit = TRUE,
...
)
Arguments
samples |
Numeric, default 2000. Overall number of posterior samples. When using multiple chains iterations per chain is samples / chains. |
backend |
Character string indicating the backend to use for fitting stan models. Currently only "rstan" is supported. |
init_fit |
Character string or This implementation is based on the approach taken in epidemia authored by James Scott. |
return_fit |
Logical, defaults to TRUE. Should the fit stan model be returned. |
... |
Additional parameters to pass underlying option functions. |
Value
A list of arguments to pass to the appropriate rstan functions.
Author(s)
Sam Abbott
See Also
rstan_opts
Examples
# using default of rstan::sampling
stan_opts(samples = 1000)
# using vb
stan_opts(method = "vb")