create_stan_args {EpiNow2} | R Documentation |
Create a List of Stan Arguments
Description
Generates a list of arguments as required by rstan::sampling
or
rstan::vb
by combining the required options, with data, and type of
initialisation. Initialisation defaults to random but it is expected that
create_initial_conditions
will be used.
Usage
create_stan_args(
stan = stan_opts(),
data = NULL,
init = "random",
verbose = FALSE
)
Arguments
stan |
A list of stan options as generated by |
data |
A list of stan data as created by |
init |
Initial conditions passed to |
verbose |
Logical, defaults to |
Value
A list of stan arguments
Author(s)
Sam Abbott
Examples
# default settings
create_stan_args()
# increasing warmup
create_stan_args(stan = stan_opts(warmup = 1000))
[Package EpiNow2 version 1.4.0 Index]