[R] Deviance of zeroinfl/hurdle models

Ben Bolker bbolker at gmail.com
Tue Jul 12 22:10:23 CEST 2011


Carson Farmer <carson.farmer <at> gmail.com> writes:

> 
> Dear list, I'm wondering if anyone can help me calculate the deviance
> of either a zeroinfl or hurdle model from package pscl?
> Even if someone could point me to the correct formula for calculating
> the deviance, I could do the rest on my own.


    What about 

library(pscl)
example(hurdle)
-2*logLik(fm_hnb2) 

 ?



More information about the R-help mailing list