Zero-augmented Gamma Quantile Function

qzag(p, mu, phi, pi, lower.tail = TRUE, log.p = FALSE)

Arguments

p

vector of quantiles.

mu

mean/s (non-negative) for the gamma distribution.

phi

dispersion parameter for the gamma distribution.

pi

vector of (in \([0, 1]\)) zero-inflation parameters.

lower.tail

logical; if TRUE (default), probabilities are \(P[X <= x]\), otherwise, \(P[X > x]\).

log.p

logical; if TRUE, probabilities p. This doesn't affect pi.

Value

A vector of quantiles, each of which coincide with the respective probability in p.