com.compute.z {compoisson} | R Documentation |
Computes the normalizing constant in the COM-Poisson model for given values of the parameters.
com.compute.z(lambda, nu, log.error = 0.001) com.compute.log.z(lambda, nu, log.error = 0.001)
lambda |
Lambda value in COM-Poisson distribution |
nu |
Nu value in COM-Poisson distribution |
log.error |
Precision in the log of the normalizing constant |
com.compute.z
computes the COM-Poisson normalizing constant
z = Sum (lambda^j)/(j!^nu)
to the specified precision. If no precision is specified, then the package default is used.
com.compute.log.z
is equivalent to log(com.compute.z(lambda, nu))
but
provudes additional precision.
The normalizing constant as a real number with specified precision.
Jeffrey Dunn
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.
data(insurance); fit = com.fit(Lemaire); z = com.compute.z(fit$lambda, fit$nu);