epinow2_cmdstan_model: Load and compile an EpiNow2 cmdstanr model

View source: R/stan.R

epinow2_cmdstan_modelR Documentation

Load and compile an EpiNow2 cmdstanr model

Description

The function has been adapted from a similar function in the epinowcast package (Copyright holder: epinowcast authors, under MIT License).

Usage

epinow2_cmdstan_model(
  model = "estimate_infections",
  dir = system.file("stan", package = "EpiNow2"),
  verbose = FALSE,
  ...
)

Arguments

model

A character string indicating the model to use. Needs to be present in dir (with extension .stan). Defaults to "estimate_infections".

dir

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

verbose

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

...

Additional arguments passed to cmdstanr::cmdstan_model().

Value

A cmdstanr model.


EpiNow2 documentation built on Oct. 31, 2024, 5:09 p.m.