pgnorm-package {pgnorm}R Documentation

The pp-Generalized Normal Distribution

Description

The pgnorm-package includes routines to evaluate (cdf,pdf) and simulate the univariate pp-generalized normal distribution with form parameter pp, expectation meanmean and standard deviation σ\sigma. The pdf of this distribution is given by

f(x,p,mean,σ)=(σp/σ)Cpexp((σpσ)pxmeanpp),f(x,p,mean,\sigma)=(\sigma_p/ \sigma) \, C_p \, \exp \left( - \left( \frac{\sigma_p}{\sigma } \right)^p \frac{\left| x-mean \right|^p}{p} \right) ,

where Cp=p11/p/2/Γ(1/p)C_p=p^{1-1/p}/2/\Gamma(1/p) and σp2=p2/pΓ(3/p)/Γ(1/p)\sigma_p^2=p^{2/p} \, \Gamma(3/p)/\Gamma(1/p), which becomes

f(x,p,mean,σ)=Cpexp(xpp),f(x,p,mean,\sigma)=C_p \, \exp \left( - \frac{\left| x \right|^p}{p} \right),

if σ=σp\sigma=\sigma_p and mean=0mean=0. The random number generation can be realized with one of five different simulation methods including the pp-generalized polar method, the pp-generalized rejecting polar method, the Monty Python method, the Ziggurat method and the method of Nardon and Pianca. Additionally to the simulation of the p-generalized normal distribution, the related pp-generalized uniform distribution on the pp-generalized unit circle and the corresponding angular distribution can be simulated by using the functions "rpgunif" and "rpgangular", respectively.

Details

Package: pgnorm
Type: Package
Version: 2.0
Date: 2015-11-23
License: GPL (>= 2)
LazyLoad: yes

Author(s)

Steve Kalke <steve.kalke@googlemail.com>

References

S. Kalke and W.-D. Richter (2013)."Simulation of the p-generalized Gaussian distribution." Journal of Statistical Computation and Simulation. Volume 83. Issue 4.

Examples

y<-rpgnorm(10,3)

[Package pgnorm version 2.0 Index]