stan_opts | R Documentation |
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.
stan_opts(
samples = 2000,
backend = "rstan",
init_fit = NULL,
return_fit = TRUE,
...
)
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. |
A list of arguments to pass to the appropriate rstan functions.
Sam Abbott
rstan_opts
# using default of rstan::sampling
stan_opts(samples = 1000)
# using vb
stan_opts(method = "vb")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.