ZIP: Zero-inflated Poisson Distribution

Description Usage Arguments Value

Description

Density, distribution function, quantile function and random generation for the zero-inflated Poisson distribution with parameters theta and lambda.

Usage

1
2
3
4
5
6
7
dzip(x, theta = 0.5, lambda = 1, log = FALSE)

pzip(q, theta = 0.5, lambda = 1, lower.tail = TRUE, log.p = FALSE)

qzip(p, theta = 0.5, lambda = 1, lower.tail = TRUE, log.p = FALSE)

rzip(n, theta = 0.5, lambda = 1)

Arguments

x, q

vector of quantiles

theta

zero-inflation parameter (probability of zeros)

lambda

expected Poisson count

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

dzip gives the density, pzip gives the distribution function, qzip gives the quantile function, and rzip generates random deviates.


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