Description Usage Arguments Details Value Author(s) References See Also Examples
Computes the normalizing constant in the COM-Poisson model for given values of the parameters.
1 2 | 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.
1 2 3 | data(insurance);
fit = com.fit(Lemaire);
z = com.compute.z(fit$lambda, fit$nu);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.