Learn R Programming

countfitteR (version 1.4)

zinb: Zero-inflated negative binomial distrbution

Description

Density and random generation for the zero-inflated negative binomial distribution.

Usage

rZINB(n, size, mu, r)

dZINB(x, size, mu, r)

Arguments

n

number of random values to return.

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..

mu

mean.

r

probability of excess zeros.

x

vector of (non-negative integer) quantiles.

See Also

Negative binomial distribution: NegBinomial.

Examples

Run this code
# NOT RUN {
rZINB(15, 1.9, 0.9, 0.8)
# }

Run the code above in your browser using DataLab