| pzinb | R Documentation |
The Zero-Inflated Negative Binomial Distribution
pzinb(q, size, mu, rho, lower.tail = TRUE, log.p = FALSE)
q |
A vector of quantities. |
size |
The dispersion paramater used in |
mu |
The mean parameter used in |
rho |
The zero-inflation parameter. |
lower.tail |
Logical; if |
log.p |
Logical; if |
The probabilities for the given q values.
x <- rzinb(10, 1, 10, 0.1)
p <- pzinb(x, 1, 10, 0.1)
y <- qzinb(p, 1, 10, 0.1)
all(x == y)
# Compute P(0 < X < 5) for X ~ ZINB(1, 10, 0.1)
sum(dzinb(0:5, 1, 10, 0.1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.