Implements the Proximal Hamiltonian Monte Carlo (p-HMC) algorithm for Bayesian sampling and estimation from non-differentiable target densities. The method decomposes a target potential into a smooth component f(x) and a non-smooth convex component g(x), approximating only g(x) via its Moreau-Yosida envelope while retaining exact gradient information for f(x). This approach, based on the methodology described in Shukla, Vats, and Chi (2025) <doi:10.48550/arXiv.2510.22252>, yields improved Hamiltonian conservation over full-potential smoothing approaches. The package provides generalized routines accepting user-defined probability density functions, log-likelihoods, priors, and proximal operators, together with automated hyperparameter tuning for the Moreau-Yosida regularization parameter, Markov chain Monte Carlo convergence diagnostics, effective sample size computation, and model evaluation metrics including the Akaike information criterion and Bayesian information criterion.
| Version: | 0.1.0 |
| Imports: | stats, graphics, grDevices, utils, Matrix |
| Suggests: | testthat (≥ 3.0.0) |
| Published: | 2026-08-21 |
| DOI: | 10.32614/CRAN.package.pHMC (may not be active yet) |
| Author: | Shikhar Tyagi |
| Maintainer: | Shikhar Tyagi <shikhar1093tyagi at gmail.com> |
| License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
| NeedsCompilation: | no |
| CRAN checks: | pHMC results |
| Reference manual: | pHMC.html , pHMC.pdf |
| Package source: | pHMC_0.1.0.tar.gz |
| Windows binaries: | r-devel: not available, r-release: not available, r-oldrel: pHMC_0.1.0.zip |
| macOS binaries: | r-release (arm64): pHMC_0.1.0.tgz, r-oldrel (arm64): pHMC_0.1.0.tgz, r-release (x86_64): pHMC_0.1.0.tgz, r-oldrel (x86_64): pHMC_0.1.0.tgz |
Please use the canonical form https://CRAN.R-project.org/package=pHMC to link to this page.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.