Skip to content
Prev 201992 / 398503 Next

Convergence problem with zeroinfl() and hurdle() when interaction term added

On Sat, 28 Nov 2009, Sarah Valencia wrote:

            
My guess is that there is (quasi-)complete separtion when you add the 
interaction term, i.e., that in one of the interaction groups there are 
only zero or non-zero counts. See
   xtabs(~ factor(Nbr_Abs > 0) + Zone + Year, data = TheData)
In this case the maximum likelihood estimate does not exist and the same 
warnings as above will occur when you try to fit a logit model for 
non-zero counts:
   glm(factor(Nbr_Abs > 0) ~ Zone * Year + Source, data = TheData,
     family = binomial)

hth,
Z