Zero-inflated Negative Binomial Quantile Function

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

Arguments

p

vector of quantiles.

mu

mean of the distribution.

phi

dispersion parameter.

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.