prophet/R/man/dot-stan_args.Rd
Cuong Duong a794018d65
Add support for cmdstanr backend (#1806)
* init

* add suggested packages

* use environment variables and align more with Py package

* remove additional testing logic, default to lbfgs

* Remove Newton specifier from test because cmdstanr expects newton

Co-authored-by: Ben Letham <bletham@gmail.com>
2021-05-10 16:09:25 -07:00

30 lines
846 B
R

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stan_backends.R
\name{.stan_args}
\alias{.stan_args}
\title{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{
\item{model}{Model object.}
\item{dat}{List containing data to use in fitting.}
\item{stan_init}{Function to initialize parameters for stan fit.}
\item{backend}{"rstan" or "cmdstanr".}
\item{type}{"mcmc" or "optimize".}
\item{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.
}
\description{
Gives Stan arguments the appropriate names depending on the chosen Stan backend.
}
\keyword{internal}