com.log.density: Computes the Log PMF of the COM-Poisson Distribution

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/com.R

Description

Computes the log probability mass function of the COM-Poisson distribution for given values of the parameters.

Usage

1
com.log.density(x, lambda, nu, log.z = NULL)

Arguments

x

level to evaulate the log PMF at

lambda

value of the lambda parameter

nu

value of the nu parameter

log.z

log of the normalizing constant, computed if not specified

Details

Computes the log probability mass function of the COM-Poisson distribution

log f(x) = x * log(lambda) - log(Z) - nu * log(x!).

Value

The log probability that a random COM-Poisson variable X takes value x.

Author(s)

Jeffrey Dunn

References

Shmueli, G., Minka, T. P., Kadane, J. B., Borle, S. and Boatwright, P., “A useful distribution for fitting discrete data: Revival of the Conway-Maxwell-Poisson distribution,” J. Royal Statist. Soc., v54, pp. 127-142, 2005.

See Also

com.loglikelihood, dcom

Examples

1
2
3
	data(insurance);
	fit = com.fit(Lemaire);
	com.log.density(0, fit$lambda, fit$nu, fit$z);

jarad/compoisson documentation built on May 18, 2019, 3:45 p.m.