简体   繁体   中英

How to get AIC from Conway–Maxwell-Poisson regression via COM-poisson package in R?

Is there an easy way to get AIC for a Conway–Maxwell-Poisson regression from COM-poisson package in R?

see http://cran.r-project.org/web/packages/COMPoissonReg/COMPoissonReg.pdf

I am not able to find build in loglik function nor AIC

Shall I use AIC(glm of poisson fit) - chisq(cmp_fit) + 2 ?

I figured out myself.

cmp calls ComputeBetasAndNuHat which returns a list which has objective as minusloglik

So I can change the function cmp to get this value.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM