Creates a configuration for the No-U-Turn Sampler (NUTS), a variant of Hamiltonian Monte Carlo that automatically tunes step size and number of steps.
nuts_sampler(warmup = 1000, draws = 1000, chains = 4, target_acceptance = 0.9)Integer. Number of warmup/adaptation iterations. Default: 1000.
Integer. Number of post-warmup samples to draw. Default: 1000.
Integer. Number of MCMC chains to run. Default: 4.
Numeric. Target acceptance rate for adaptation. Default: 0.9 (recommended for complex models).
An S3 object of class c("epiaware_nuts", "epiaware_sampler")
containing sampler configuration.
if (FALSE) { # \dontrun{
# Default NUTS configuration
sampler <- nuts_sampler()
# Custom configuration for faster testing
test_sampler <- nuts_sampler(
warmup = 100,
draws = 100,
chains = 2
)
} # }