Package: mhn 0.1.0

mhn: The Modified Half-Normal Distribution

Provides density, distribution, quantile, and random generation functions for the Modified Half-Normal (MHN) distribution, along with moments, mode, and the Fox-Wright Psi function used as the normalizing constant. The MHN distribution arises as a conditional posterior in Bayesian MCMC and generalizes the half-normal, truncated normal, and square-root gamma distributions. Implements efficient sampling via the Sun, Kong & Pal (2023) <doi:10.1080/03610926.2021.1934700> algorithms and the Gao & Wang (2025) <doi:10.1080/03610918.2025.2524551> RTDR method.

Authors:Tomotaka Momozaki [aut, cre]

mhn_0.1.0.tar.gz
mhn_0.1.0.zip(r-4.7)mhn_0.1.0.zip(r-4.6)mhn_0.1.0.zip(r-4.5)
mhn_0.1.0.tgz(r-4.6-x86_64)mhn_0.1.0.tgz(r-4.6-arm64)mhn_0.1.0.tgz(r-4.5-x86_64)mhn_0.1.0.tgz(r-4.5-arm64)
mhn_0.1.0.tar.gz(r-4.7-arm64)mhn_0.1.0.tar.gz(r-4.7-x86_64)mhn_0.1.0.tar.gz(r-4.6-arm64)mhn_0.1.0.tar.gz(r-4.6-x86_64)
mhn_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
mhn/json (API)
NEWS

# Install 'mhn' in R:
install.packages('mhn', repos = c('https://t-momozaki.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/t-momozaki/mhn/issues

Pkgdown/docs site:https://t-momozaki.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

4.00 score 6 scripts 9 exports 2 dependencies

Last updated from:56a950316a. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK174
linux-devel-x86_64OK173
source / vignettesOK236
linux-release-arm64OK188
linux-release-x86_64OK169
macos-release-arm64OK185
macos-release-x86_64OK260
macos-oldrel-arm64OK164
macos-oldrel-x86_64OK360
windows-develOK203
windows-releaseOK161
windows-oldrelOK169
wasm-releaseOK148

Exports:dmhnmhn_kurtosismhn_meanmhn_modemhn_skewnessmhn_varpmhnqmhnrmhn

Dependencies:BHRcpp

Introduction to the mhn Package

Rendered fromintroduction.Rmdusingknitr::rmarkdownon May 28 2026.

Last update: 2026-05-18
Started: 2026-05-18

Theoretical background of the mhn package

Rendered fromtheory.Rmdusingknitr::rmarkdownon May 28 2026.

Last update: 2026-05-18
Started: 2026-05-18