dzinb: # This function computes the distribution of the zero...

Description Usage Arguments Value Author(s) Examples

Description

# This function computes the distribution of the zero inflated negative binomial distribution.

Usage

1
dzinb(x, size, mu, rho, log)

Arguments

x

Vector of (non-negative integer) quantiles.

size

size parameter.

mu

mean parameter

rho

Zero inflation parameter.

log

Logical variable either TRUE/FALSE; if TRUE, probabilities p are given as log(p).

Value

Returns the distribution function for the zero inflated negative binomial distribution with mean, size, zero inflation parameters.

Author(s)

Samarendra Das

Examples

1
2
3
x = c(0, 1, 4)
mu <- 0.5; size <- 0.23; rho <- 0.32
p = dzinb(x, mu, size, rho, log=TRUE)

sam-uofl/SwarnSeq documentation built on Sept. 6, 2020, 12:09 a.m.