epinow2_stan_model: Return a stan model object for the appropriate backend

View source: R/stan.R

epinow2_stan_modelR Documentation

Return a stan model object for the appropriate backend

Description

Return a stan model object for the appropriate backend

Usage

epinow2_stan_model(
  backend = c("rstan", "cmdstanr"),
  model = c("estimate_infections", "simulate_infections", "estimate_secondary",
    "simulate_secondary", "estimate_truncation", "dist_fit")
)

Arguments

backend

Character string indicating the backend to use for fitting stan models. Supported arguments are "rstan" (default) or "cmdstanr".

model

A character string indicating the model to use. One of "estimate_infections" (default), "simulate_infections", "estimate_secondary", "simulate_secondary", "estimate_truncation" or "dist_fit".

Value

A stan model object (either rstan::stanmodel or cmdstanr::CmdStanModel, depending on the backend)


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