nimbleHMC: 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) <doi:10.48550/arXiv.1111.4246>. 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.

Getting started

Package details

AuthorDaniel Turek [aut, cre], Perry de Valpine [aut], Christopher Paciorek [aut]
MaintainerDaniel Turek <danielturek@gmail.com>
LicenseBSD_3_clause + file LICENSE | GPL (>= 2)
Version0.2.3
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("nimbleHMC")

Try the nimbleHMC package in your browser

Any scripts or data that you put into this service are public.

nimbleHMC documentation built on April 4, 2025, 12:24 a.m.