The Generalized Gamma Distribution (Prentice's alternative parametrization)
The Generalized Gamma Distribution (Prentice's alternative parametrization)
Probability function, distribution function, quantile function and random generation for the distribution with parameters mu, sigma and varphi.
dggprentice(x, mu, sigma, varphi, log =FALSE)pggprentice(q, mu =0, sigma =1, varphi, lower.tail =TRUE, log.p =FALSE)qggprentice(p, mu =0, sigma =1, varphi, lower.tail =TRUE, log.p =FALSE)rggprentice(n, mu =0, sigma =1, varphi,...)
Arguments
x: vector of (non-negative integer) quantiles.
mu: location parameter of the distribution.
sigma: scale parameter of the distribution (sigma > 0).
varphi: shape parameter of the distribution.
log, log.p: logical; if TRUE, probabilities p are given as log(p).
q: vector of quantiles.
lower.tail: logical; if TRUE (default), probabilities are P[X≤x]; otherwise, P[X>x].
p: vector of probabilities.
n: number of random values to return.
...: further arguments passed to other methods.
Returns
dggprentice gives the (log) probability function, pggprentice gives the (log) distribution function, qggprentice gives the quantile function, and rggprentice generates random deviates.
where y=(σx)φ, FG(⋅∣ν,1) is the distribution function of a gamma distribution with shape parameter 1/φ2 and scale parameter equals to 1, and FLN(x∣μ,σ) corresponds to the distribution function of a lognormal distribution with location parameter μ and scale parameter σ.