Compiles one of the bundled Stan models and returns a CmdStanModel
object. Use this to pre-compile a model before running multiple fits in
parallel (e.g., on HPC).
Arguments
- model
Character string specifying the model to compile. One of:
"presence_only"(default),"bm_constant","bm_evolving","ou_constant","ou_evolving", or"null".- stan_threads
Logical, whether to compile with threading support for
reduce_sumparallelisation (defaultFALSE).- ...
Additional arguments passed to
cmdstanr::cmdstan_model().