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

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) .


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("nimbleHMC")

0.2.5 by Daniel Turek, 3 months ago


Browse source code at https://github.com/cran/nimbleHMC


Authors: Daniel Turek [aut, cre] , Perry de Valpine [aut] , Christopher Paciorek [aut]


Documentation:   PDF Manual  


BSD_3_clause + file LICENSE | GPL (>= 2) license


Imports methods

Depends on nimble

Suggests testthat


Suggested by runMCMCbtadjust.


See at CRAN