Skip to contents

Distribution functions

Density, distribution, quantile and random generation, following the argument conventions of base R’s stats package. All four are vectorised over the evaluation argument and over the parameters, with the usual recycling rule.

dmhn()
Density of the Modified Half-Normal Distribution
pmhn()
Distribution Function of the Modified Half-Normal Distribution
qmhn()
Quantile Function of the Modified Half-Normal Distribution
rmhn()
Random Generation from the Modified Half-Normal Distribution

Summary statistics

Mean, variance, skewness, excess kurtosis and mode of a single MHN(alpha, beta, gamma) law, from closed forms where these are accurate and from quadrature otherwise. These take one parameter triple rather than recycling vectors.

mhn_mean()
Mean of the Modified Half-Normal Distribution
mhn_var()
Variance of the Modified Half-Normal Distribution
mhn_skewness()
Skewness of the Modified Half-Normal Distribution
mhn_kurtosis()
Excess Kurtosis of the Modified Half-Normal Distribution
mhn_mode()
Mode of the Modified Half-Normal Distribution

Package overview

mhn mhn-package
mhn: The Modified Half-Normal Distribution