GHYP {QRM} | R Documentation |
Uni- and Multivariate Generalized Hyperbolic Distribution
Description
Values of density and random number generation for uni- and
multivariate Generalized Hyperbolic distribution in new QRM
parameterization and in
standard parametrization
; univariate only. See pp. 77–81 in QRM. The special case of a
multivariate symmetric GHYP is implemented seperately as function
dsmghyp()
.
Usage
dghyp(x, lambda, chi, psi, mu = 0, gamma = 0, log = FALSE)
dmghyp(x, lambda, chi, psi, mu, Sigma, gamma, log = FALSE)
dsmghyp(x, lambda, chi, psi, mu, Sigma, log = FALSE)
dghypB(x, lambda, delta, alpha, beta = 0, mu = 0, log = FALSE)
rghyp(n, lambda, chi, psi, mu = 0, gamma = 0)
rmghyp(n, lambda, chi, psi, Sigma, mu, gamma)
rghypB(n, lambda, delta, alpha, beta = 0, mu = 0)
Arguments
alpha |
|
beta |
|
chi |
|
delta |
|
gamma |
|
lambda |
|
log |
|
mu |
|
n |
|
psi |
|
Sigma |
|
x |
|
Details
The univariate QRM parameterization is defined in terms of parameters
instead of the
model used by Blaesild
(1981). If
, a normal variance mixture where
the mixing variable
has a Generalized Inverse Gaussian
distribution (GIG) with parameters
is given, with heavier tails. If
, a normal mean-variance mixture where the mean is also perturbed to
equal
which introduces
asymmetry as well, is obtained. Values for
and
are identical in both QRM and B parameterizations. The
dispersion matrix
does not appear as argument in
the univariate case since its value is identically one.
Value
numeric, value(s) of density or log-density (dghyp, dmghyp, dsmghyp and dghypB) or random sample (rghyp, rmghyp, rghypB)
Note
Density values from dgyhp() should be identical to those from dghypB()
if the parameters of
the B type are translated to the corresponding
parameters of the QRM type by formulas on pp
79–80 in QRM.
If is a vector of zeros, the distribution is
elliptical and
dsmghyp()
is utilised in dmghyp()
. If
, a d-dimensional
hyperbolic density results. If
, the
univariate marginals are one-dimensional hyperbolics. If
, the distribution is Normal Inverse Gaussian
(NIG). If
and
,
one obtains a Variance Gamma distribution (VG). If one can define a
constant
such that
and
then one obtains a
multivariate skewed-t distribution. See p. 80 of QRM for details.
Examples
old.par <- par(no.readonly = TRUE)
par(mfrow = c(2, 2))
ll <- c(-4, 4)
BiDensPlot(func = dmghyp, xpts = ll, ypts = ll, mu = c(0, 0),
Sigma = equicorr(2, -0.7), lambda = 1, chi = 1, psi = 1,
gamma = c(0, 0))
BiDensPlot(func = dmghyp, type = "contour", xpts = ll, ypts = ll,
mu = c(0, 0), Sigma = equicorr(2, -0.7), lambda = 1,
chi = 1, psi = 1, gamma = c(0, 0))
BiDensPlot(func = dmghyp, xpts = ll, ypts = ll, mu = c(0, 0),
Sigma = equicorr(2, -0.7), lambda = 1, chi = 1, psi = 1,
gamma = c(0.5, -0.5))
BiDensPlot(func = dmghyp, type = "contour", xpts = ll, ypts = ll,
mu = c(0, 0), Sigma = equicorr(2, -0.7), lambda = 1,
chi = 1, psi = 1, gamma = c(0.5, -0.5))
par(old.par)