Description Usage Arguments Details See Also Examples
Probability mass function and random generation for the zero-inflated negative binomial distribution.
1 2 3 4 5 6 7 |
x, q |
vector of quantiles. |
size |
target for number of successful trials, or dispersion parameter (the shape parameter of the gamma mixing distribution). Must be strictly positive, need not be integer. |
prob |
probability of success in each trial. |
pi |
probability of extra zeros. |
log, log.p |
logical; if TRUE, probabilities p are given as log(p). |
lower.tail |
logical; if TRUE (default), probabilities are P[X ≤ x] otherwise, P[X > x]. |
p |
vector of probabilities. |
n |
number of observations. If |
Probability density function
f(x) = [if x = 0:] (1-π)+π * p^r [else:] (1-π) * dnbinom(x, size, prob)
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.