Run the model via cmdstanr, selecting the CmdStanModel method based the model type:

# S3 method for bbi_stan_model
submit_model(
  .mod,
  .bbi_args = NULL,
  .mode = c("local"),
  ...,
  .overwrite = NULL
)

# S3 method for bbi_stan_gq_model
submit_model(
  .mod,
  .bbi_args = NULL,
  .mode = c("local"),
  ...,
  .overwrite = NULL
)

Arguments

.mod

The model object to submit.

.bbi_args

Unused argument (present for compatibility with bbr::submit_model()).

.mode

Mode of model submission. Stan models currently only support local execution.

...

Additional arguments (ignored for all Stan models).

.overwrite

Logical to specify whether or not to overwrite existing model output from a previous run. If NULL, the default, will defer to setting in .bbi_args or bbi.yaml. If not NULL will override any settings in .bbi_args or bbi.yaml.

See also

bbr_stan for a high-level description of how Stan models are structured