acmpmle | R Documentation |
Functions to Estimate the Conway Maxwell Poisson Discrete Probability Distribution via maximum likelihood.
acmpmle(x, cutoff = 1, cutabove = 1000, guess=c(7,3),
method="BFGS", conc=FALSE, hellinger=FALSE, hessian=TRUE)
x |
A vector of counts (one per observation). |
cutoff |
Calculate estimates conditional on exceeding this value. |
cutabove |
Calculate estimates conditional on not exceeding this value. |
guess |
Initial estimate at the MLE. |
method |
Method of optimization. See "optim" for details. |
conc |
Calculate the concentration index of the distribution? |
hellinger |
Minimize Hellinger distance of the parametric model from the data instead of maximizing the likelihood. |
hessian |
Calculate the hessian of the information matrix (for use with calculating the standard errors. |
theta |
vector of MLE of the parameters. |
asycov |
asymptotic covariance matrix. |
asycor |
asymptotic correlation matrix. |
se |
vector of standard errors for the MLE. |
conc |
The value of the concentration index (if calculated). |
See the papers on https://handcock.github.io/?q=Holland for details.
Based on the C code in the package compoisson written by Jeffrey Dunn (2008).
compoisson: Conway-Maxwell-Poisson Distribution, Jeffrey Dunn, 2008, R package version 0.3
ayulemle, awarmle, simcmp
# Simulate a Conway Maxwell Poisson distribution over 100
# observations with mean of 7 and variance of 3
# This leads to a mean of 1
set.seed(1)
s4 <- simcmp(n=100, v=c(7,3))
table(s4)
#
# Calculate the MLE and an asymptotic confidence
# interval for the parameters
#
acmpmle(s4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.