dot-stan_args: Gives Stan arguments the appropriate names depending on the...

.stan_argsR Documentation

Gives Stan arguments the appropriate names depending on the chosen Stan backend.

Description

Gives Stan arguments the appropriate names depending on the chosen Stan backend.

Usage

.stan_args(model, dat, stan_init, backend, type, mcmc_samples = 0, ...)

Arguments

model

Model object.

dat

List containing data to use in fitting.

stan_init

Function to initialize parameters for stan fit.

backend

"rstan" or "cmdstanr".

type

"mcmc" or "optimize".

mcmc_samples

Integer, if greater than 0, will do full Bayesian inference with the specified number of MCMC samples. If 0, will do MAP estimation.

Value

Named list of arguments.


prophet documentation built on Jan. 22, 2026, 9:06 a.m.