Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: zinb for Zero-inflated negative binomial regression

From   Caroline Wilson <>
To   "" <>
Subject   st: zinb for Zero-inflated negative binomial regression
Date   Thu, 3 Oct 2013 18:58:24 +0000

Hi everyone,

I'm new to using the zinb command in Stata (for a Zero-inflated negative binomial regression) and had a few questions about my code:

This is my current code:

zinb test var_m var_l var_c, inflate(var_m var_l var_c, offset(var_l)) vce(cluster group1)

1. I'm trying to add an offset variable to the model (var_l).  I have added it by including ", offset(var_l)" in the code. However, when I run the model including the offset terms it just runs indefinitely (while it runs fine when I don't include this). Is there something wrong with how I have specified this? 

2. I'd like to look at residuals for some of the linear terms in the model. How might I do this with zinb?

3. I'd like to account for clustering of people within group1. Is adding "vce(cluster group1)" the correct way to handle this?

Many thanks!
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index