ZINB: Zero-inflated Negative Binomial Distribution

Description Usage Arguments Value

Description

Density, distribution function, quantile function and random generation for the zero-inflated negative binomial distribution with parameters theta, size, and mu.

Usage

1
2
3
4
5
6
7
dzinb(x, theta = 0.5, size = 1, mu = 1, log = FALSE)

pzinb(q, theta = 0.5, size = 1, mu = 1, lower.tail = TRUE, log.p = FALSE)

qzinb(p, theta = 0.5, size = 1, mu = 1, lower.tail = TRUE, log.p = FALSE)

rzinb(n, theta = 0.5, size = 1, mu = 1)

Arguments

x, q

vector of quantiles

theta

zero-inflation parameter (probability of zeros)

size

number of successes (dispersion parameter)

mu

mean parameter (alternative parameterization)

log, log.p

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

lower.tail

logical; if TRUE (default), probabilities are P[X %leq x], otherwise, P[X > x].

p

vector of probabilities

n

number of observations

Value

dzinb gives the density, pzinb gives the distribution function, qzinb gives the quantile function, and rzinb generates random deviates.


ebalderama/ZimulatE documentation built on Dec. 20, 2021, 3:12 a.m.