Learn R Programming

nimbleHMC (version 0.2.4)

Hamiltonian Monte Carlo and Other Gradient-Based MCMC Sampling Algorithms for 'nimble'

Description

Provides gradient-based MCMC sampling algorithms for use with the MCMC engine provided by the 'nimble' package. This includes two versions of Hamiltonian Monte Carlo (HMC) No-U-Turn (NUTS) sampling, and (under development) Langevin samplers. The `NUTS_classic` sampler implements the original HMC-NUTS algorithm as described in Hoffman and Gelman (2014) . The `NUTS` sampler is a modern version of HMC-NUTS sampling matching the HMC sampler available in version 2.32.2 of Stan (Stan Development Team, 2023). In addition, convenience functions are provided for generating and modifying MCMC configuration objects which employ HMC sampling. Functionality of the 'nimbleHMC' package is described further in Turek, et al (2024) .

Copy Link

Version

Install

install.packages('nimbleHMC')

Monthly Downloads

297

Version

0.2.4

License

BSD_3_clause + file LICENSE | GPL (>= 2)

Maintainer

Daniel Turek

Last Published

December 16th, 2025

Functions in nimbleHMC (0.2.4)

stateNL_NUTS

nimbleList definition used internally in NUTS sampler.
nimbleHMC

Builds and executes NIMBLE's HMC sampler
configureHMC

Configure HMC
buildHMC

Build HMC
addHMC

Add HMC sampler
sampler_NUTS

No-U-Turn (NUTS) Hamiltonian Monte Carlo (HMC) Sampler
sampler_NUTS_classic

Classic No-U-Turn (NUTS_classic) Hamiltonian Monte Carlo (HMC) Sampler
treebranchNL_NUTS

nimbleList definition used internally in NUTS sampler.