Calculates (log) moments of univariate generalized inverse Gaussian (GIG) distribution and generating random variates.
1 2 3 
chi 

envplot 

k 

lambda 

messages 

n 

psi 

Normal variance mixtures are frequently obtained by perturbing the
variance component of a normal distribution; here this is done by
multiplying the square root of a mixing variable assumed to have a GIG
distribution depending upon three parameters (lambda, chi, psi). See p.77 in QRM.
Normal meanvariance mixtures are created from normal variance
mixtures by applying another perturbation of the same mixing variable
to the mean component of a normal distribution. These perturbations
create Generalized Hyperbolic Distributions. See pp. 78–81 in QRM. A
description of the GIG is given on page 497 in QRM Book.
(log) mean of distribution or vector random variates in case of
rgig()
.
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.