ZINB | R Documentation |
Density, distribution function, quantile function and random generation for the zero-inflated
negative binomial (ZINB) distribution with parameters k
, lambda
, and omega
.
dzinb(x, k, lambda, omega, log = FALSE)
pzinb(q, k, lambda, omega, lower.tail = TRUE, log.p = FALSE)
qzinb(p, k, lambda, omega, lower.tail = TRUE, log.p = FALSE)
rzinb(n, k, lambda, omega)
x , q |
vector of quantiles. |
p |
vector of probabilities. |
n |
number of random values to return. |
k |
dispersion parameter. |
lambda |
vector of (non-negative) means. |
omega |
zero-inflation parameter. |
log , log.p |
logical; if TRUE, probabilities |
lower.tail |
logical; if TRUE (default), probabilities are |
dzinb
gives the density, pzinb
gives the distribution function,
qzinb
gives the quantile function, and rzinb
generates random deviates.
dzip
, pzip
, qzip
, and rzip
for the zero-inflated Poisson (ZIP) distribution.
dzinb(x = 0:10, k = 1, lambda = 1, omega = 0.5)
pzinb(q = c(1, 5, 9), k = 1, lambda = 1, omega = 0.5)
qzinb(p = c(0.25, 0.50, 0.75), k = 1, lambda = 1, omega = 0.5)
set.seed(123)
rzinb(n = 100, k = 1, lambda = 1, omega = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.