% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tools-mcmc.R
\name{build_stan_control}
\alias{build_stan_control}
\title{Build Stan sampling-control list from user-provided \code{control.method}}
\usage{
build_stan_control(algorithm, control.method)
}
\arguments{
\item{algorithm}{Character scalar: \code{"NUTS"}, \code{"HMC"}, or
\code{"Fixed_param"}.}

\item{control.method}{A named list of Stan method controls.}
}
\value{
A named list of Stan sampling-control parameters (possibly empty).
}
\description{
This helper extracts Stan sampler tuning knobs (e.g. \code{adapt_delta},
\code{max_treedepth}) from method-specific controls so they can be passed
safely to \code{rstan::sampling()}.
}
\keyword{internal}
