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.8)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
)
} # }