epinow2_stan_model | R Documentation |
Return a stan model object for the appropriate backend
epinow2_stan_model(
backend = c("rstan", "cmdstanr"),
model = c("estimate_infections", "simulate_infections", "estimate_secondary",
"simulate_secondary", "estimate_truncation", "dist_fit")
)
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". |
A stan model object (either rstan::stanmodel
or
cmdstanr::CmdStanModel
, depending on the backend)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.