Skip to content
Prev 324703 / 398503 Next

Zero-Inflated Negative Binomial Regression

On Tue, 4 Jun 2013, Carly Bobak wrote:

            
In many cases, separation issues are apparent from simple explorative 
analysis. If you have categorical covariates x, say, then you could look 
at xtabs(~ factor(Paper > 0) + x, data = OvsP). For numeric x, you could 
cut() it first.

Or you could look at the visualization (which does the cut() internally 
if necessary): plot(factor(Paper > 0) ~ x, data = OvsP)

Then the variables with separation issues should be easy to find (or at 
least to narrow it down).
Hard to say what goes wrong here. Possibly, the variables are numeric or 
you have specified the formula incorrectly.
In the zero-inflation formulation you can't separate the binary part from 
the count part of the model. However, for the hurdle specification, you 
can estimate the models separately.

If necessary, the truncated count part of the _hurdle_ model can be 
estimated with the zerotrunc() function from the "countreg" package on 
R-Forge. That is exactly the same code as in "pscl". But there are also 
other implementations of zero-truncated models in R, e.g., in "VGAM".

hth,
Z