dcom gives the probability that a random COM-Poisson variable X takes value x.
rcom gives a vector of n random values sampled from the COM-Poisson
distribution.
Details
Computes the probability mass function of the COM-Poisson distribution
$$
f(x) = \frac{1}{Z(\lambda,\nu)}\frac{\lambda^x}{(x!)^\nu}.
$$
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.