Learn R Programming

prophet (version 1.1.7)

.stan_args: 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, ...)

Value

Named list of arguments.

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.