Re: [R] Deviance of zeroinfl/hurdle models

2011-07-20 Thread cfarmer
bbolker wrote: > > What about > > library(pscl) > example(hurdle) > -2*logLik(fm_hnb2) > > ? > Should this not be -2*(logLik(M) - logLik(S)) where M is the current model and S is the saturated or full model? In which case, is it safe to assume that L(S) = 0? Or have I got my deviances

Re: [R] Deviance of zeroinfl/hurdle models

2011-07-12 Thread Ben Bolker
Carson Farmer 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 a

[R] Deviance of zeroinfl/hurdle models

2011-07-12 Thread Carson Farmer
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. I am trying to calculate a pseudo-R-squared measure based