Zero-augmented Gamma Probability Density Function

dzag(x, mu, phi, pi, log = FALSE)

Arguments

x

vector of (non-negative) values.

mu

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

phi

dispersion parameter for the gamma distribution.

pi

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

log

logical; if TRUE, probabilities, p, are given as log(p).

Value

The (log) probability mass at x, given mu, phi, and pi.