dzinb {SeqNet}R Documentation

The Zero-Inflated Negative Binomial Distribution

Description

The Zero-Inflated Negative Binomial Distribution

Usage

dzinb(x, size, mu, rho = 0, log = FALSE)

Arguments

x

A vector of quantities.

size

The dispersion paramater used in dnbinom.

mu

The mean parameter used in dnbinom.

rho

The zero-inflation parameter.

log

Logical; if TRUE, then log(d) is returned.

Value

The value(s) of the density function evaluated at x.

References

Grimes T, Datta S (2021). “SeqNet: An R Package for Generating Gene-Gene Networks and Simulating RNA-Seq Data.” Journal of Statistical Software, 98(12), 1–49. doi: 10.18637/jss.v098.i12, https://doi.org/10.18637/jss.v098.i12.

Examples

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

[Package SeqNet version 1.1.3 Index]