Generalized Inverse Gaussian Distribution
Description
Calculates (log) moments of univariate generalized inverse Gaussian (GIG) distribution and generating random variates.
Usage
1 2 3 
Arguments
chi 

envplot 

k 

lambda 

messages 

n 

psi 

Details
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.
Value
(log) mean of distribution or vector random variates in case of
rgig()
.