i2p_model.Rd
Load and compile the model
i2p_model(
model = "stan/inc2prev.stan",
include,
compile = TRUE,
threads = FALSE,
verbose = TRUE,
optimise = TRUE,
...
)
A character string indicating the path to the model. If not supplied the package default model is used.
A character string specifying the path to any stan files to include in the model. If missing the package default is used.
Logical, defaults to TRUE
. Should the model
be loaded and compiled using cmdstanr::cmdstan_model()
.
Logical, defaults to FALSE
. Should the model compile with
support for multi-thread support in chain. Note that this requires the use of
the threads_per_chain
argument when model fitting using enw_sample()
,
and epinowcast()
.
Logical, defaults to TRUE
. Should verbose
messages be shown.
Additional arguments passed to cmdstanr::cmdstan_model()
.
A cmdstanr
model.
Other model:
i2p_sample()
if (FALSE) { # interactive()
mod <- i2p_model()
}