d: dimension of the underlying normal variance mixture, see also details below.
n: sample size n (positive integer).
lower.tail: logical; if TRUE (default), probabilities are P(X<=x), otherwise P(X>x).
log: logical indicating whether the log-density shall be returned.
q.only: see qnvmix().
stored.values: see qnvmix().
method: see rnvmix().
skip: see rnvmix().
control: list specifying algorithm specific parameters; see get_set_param().
verbose: logical
indicating whether a warning is given if the required precision has not been reached.
...: additional arguments (for example, parameters) passed to the underlying mixing distribution when qmix is a character string or function.
Returns
pgammamix() and dgammamix() return a numericn-vector with the computed probabilities/densities and corresponding attributes "abs. error"
and "rel. error" (error estimates of the RQMC estimator) and "numiter" (number of iterations).
If q.only = TRUE, qgammamix() a vector of the same length as u with entries qi where qi satisfies qi=infxF(x)>=ui where F(x) the df of the Gamma mixture specified via qmix; if q.only = FALSE, see qnvmix.
rgammamix() returns a n-vector containing n
samples of the specified (via mix) Gamma mixture.
Details
We define a Gamma mixture as a random variable Dsq satisfying, in distribution, Dsq=W∗Gamma(d/2,2) where W is specified via qmix. If X follows a d−dimensional normal variance mixture, the squared Mahalanobis distance (X−μ)TSigma−1(X−μ) has the same distribution as Dsq.
The functions presented here are similar to the corresponding functions for normal variance mixtures (d/p/q/rnvmix()), details can be found in the corresponding help-files there.
Author(s)
Erik Hintz, Marius Hofert and Christiane Lemieux
References
Hintz, E., Hofert, M. and Lemieux, C. (2021), Normal variance mixtures: Distribution, density and parameter estimation. Computational Statistics and Data Analysis 157C, 107175.
Hintz, E., Hofert, M. and Lemieux, C. (2022), Multivariate Normal Variance Mixtures in : The Package nvmix. Journal of Statistical Software, tools:::Rd_expr_doi("10.18637/jss.v102.i02") .