Learn R Programming

COMPoissonReg (version 0.8.1)

CMP Distribution: COM-Poisson Distribution

Description

Functions for the COM-Poisson distribution.

Usage

dcmp(x, lambda, nu, log = FALSE, control = NULL)

rcmp(n, lambda, nu, control = NULL)

pcmp(x, lambda, nu, control = NULL)

qcmp(q, lambda, nu, log.p = FALSE, control = NULL)

ecmp(lambda, nu, control = NULL)

vcmp(lambda, nu, control = NULL)

ncmp(lambda, nu, log = FALSE, control = NULL)

tcmp(lambda, nu, control = NULL)

Value

dcmp

density,

pcmp

cumulative probability,

qcmp

quantiles,

rcmp

generate random variates,

ecmp

expected value,

vcmp

variance,

ncmp

value of the normalizing constant, and

tcmp

upper value used to compute the normalizing constant under truncation method.

Arguments

x

vector of quantiles.

lambda

rate parameter.

nu

dispersion parameter.

log

logical; if TRUE, probabilities are returned on log-scale.

control

a COMPoissonReg.control object from get.control or NULL to use global default.

n

number of observations.

q

vector of probabilities.

log.p

logical; if TRUE, probabilities p are given as \(\log(p)\).

Author

Kimberly Sellers

References

Kimberly F. Sellers & Galit Shmueli (2010). A Flexible Regression Model for Count Data. Annals of Applied Statistics, 4(2), 943-961.