Load and compile the model

i2p_model(
  model = "stan/inc2prev.stan",
  include,
  compile = TRUE,
  threads = FALSE,
  verbose = TRUE,
  optimise = TRUE,
  ...
)

Arguments

model

A character string indicating the path to the model. If not supplied the package default model is used.

include

A character string specifying the path to any stan files to include in the model. If missing the package default is used.

compile

Logical, defaults to TRUE. Should the model be loaded and compiled using cmdstanr::cmdstan_model().

threads

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().

verbose

Logical, defaults to TRUE. Should verbose messages be shown.

...

Additional arguments passed to cmdstanr::cmdstan_model().

Value

A cmdstanr model.

See also

Other model: i2p_sample()

Examples

if (FALSE) { # interactive()
mod <- i2p_model()
}