Gives Stan arguments the appropriate names depending on the chosen Stan backend.
.stan_args(model, dat, stan_init, backend, type, mcmc_samples = 0, ...)Named list of arguments.
Model object.
List containing data to use in fitting.
Function to initialize parameters for stan fit.
"rstan" or "cmdstanr".
"mcmc" or "optimize".
Integer, if greater than 0, will do full Bayesian inference with the specified number of MCMC samples. If 0, will do MAP estimation.