Learn R Programming

EpiNow2 (version 1.6.1)

stan_pathfinder_opts: Stan pathfinder algorithm Options

Description

[Experimental] Defines a list specifying the arguments passed to cmdstanr::laplace().

Usage

stan_pathfinder_opts(backend = "cmdstanr", samples = 2000, trials = 10, ...)

Value

A list of arguments to pass to cmdstanr::laplace().

Arguments

backend

Character string indicating the backend to use for fitting stan models. Supported arguments are "rstan" (default) or "cmdstanr".

samples

Numeric, default 2000. Overall number of posterior samples. When using multiple chains iterations per chain is samples / chains.

trials

Numeric, defaults to 10. Number of attempts to use rstan::vb()] before failing.

...

Additional parameters to pass to cmdstanr::laplace().

Examples

Run this code
stan_laplace_opts()

Run the code above in your browser using DataLab