The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

pHMC: Proximal Hamiltonian Monte Carlo for Non-Smooth Bayesian Inference

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
Author: Shikhar Tyagi ORCID iD [aut, cre], Arvind Pandey [aut], Bhupendra Singh [aut], Vrijesh Tripathi [aut]
Maintainer: Shikhar Tyagi <shikhar1093tyagi at gmail.com>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: no
CRAN checks: pHMC results

Documentation:

Reference manual: pHMC.html , pHMC.pdf

Downloads:

Package source: pHMC_0.1.0.tar.gz
Windows binaries: r-devel: pHMC_0.1.0.zip, r-release: pHMC_0.1.0.zip, 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

Linking:

Please use the canonical form https://CRAN.R-project.org/package=pHMC to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.