Description Usage Arguments Details Value Author(s) References See Also Examples
Computes the log probability mass function of the COM-Poisson distribution for given values of the parameters.
1 | com.log.density(x, lambda, nu, log.z = NULL)
|
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 |
Computes the log probability mass function of the COM-Poisson distribution
log f(x) = x * log(lambda) - log(Z) - nu * log(x!).
The log probability that a random COM-Poisson variable X takes value x.
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);
com.log.density(0, fit$lambda, fit$nu, fit$z);
|
Loading required package: MASS
[1] -1.102971
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.