build_stan_control: Build Stan sampling-control list from user-provided...

View source: R/tools-mcmc.R

build_stan_controlR Documentation

Build Stan sampling-control list from user-provided control.method

Description

This helper extracts Stan sampler tuning knobs (e.g. adapt_delta, max_treedepth) from method-specific controls so they can be passed safely to rstan::sampling().

Usage

build_stan_control(algorithm, control.method)

Arguments

algorithm

Character scalar: "NUTS", "HMC", or "Fixed_param".

control.method

A named list of Stan method controls.

Value

A named list of Stan sampling-control parameters (possibly empty).


ForceChoice documentation built on Sept. 13, 2026, 1:06 a.m.