Learn R Programming

rmutil (version 1.1.9)

DoublePoisson: Double Poisson Distribution

Description

These functions provide information about the double Poisson distribution with parameters m and s: density, cumulative distribution, quantiles, and random generation.

The double Poisson distribution with mu \(= m\) has density $$p(y) = c({\mu}, {\lambda}) {\lambda}^({y}/{\mu}) ({\mu}/{y})^(y\log({\lambda})) {y}^{(y-1)} / {y!}% $$ for \(y = 0, \ldots\), where c(.) is a normalizing constant.

Usage

ddoublepois(y, m, s, log=FALSE)
pdoublepois(q, m, s)
qdoublepois(p, m, s)
rdoublepois(n, m, s)

Arguments

y

vector of counts

q

vector of quantiles

p

vector of probabilities

n

number of values to generate

m

vector of means

s

vector of overdispersion parameters

log

if TRUE, log probabilities are supplied.

See Also

dpois for the Poisson, dconsul for the Consul generalized Poisson, dgammacount for the gamma count, dmultpois for the multiplicative Poisson, dpvfpois for the power variance function Poisson, and dnbinom for the negative binomial distribution.

Examples

Run this code
ddoublepois(5,10,0.9)
pdoublepois(5,10,0.9)
qdoublepois(0.08,10,0.9)
rdoublepois(10,10,0.9)

Run the code above in your browser using DataLab