stan_pathfinder_opts function

Stan pathfinder algorithm Options

Stan pathfinder algorithm Options

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

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

Arguments

  • backend: Character string indicating the backend to use for fitting stan models. Supported arguments are "rstan" (default) or "cmdstanr".
  • samples: Numeric, defaults to 2000. Number of posterior samples.
  • trials: Numeric, defaults to 10. Number of attempts to use rstan::vb()] before failing.
  • ...: Additional parameters to pass to cmdstanr::laplace().

Returns

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

Examples

stan_laplace_opts()