Bookmark and Share

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


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

Re: st: zinb for Zero-inflated negative binomial regression


From   Steve Samuels <[email protected]>
To   [email protected]
Subject   Re: st: zinb for Zero-inflated negative binomial regression
Date   Thu, 3 Oct 2013 19:11:26 -0400

Caroline:

1. You have the same variable specified as a covariate and offset.

2. The phrase "residuals for some of the linear terms" is meaningless
(to me at least). See the -help- on post-estimation for -zinb-,
especially the -predict- command.

3. As you don't describe the study design or what "group1" is, I can't
answer your question conclusively. The syntax looks correct to me.
Have you checked the -help- for "vcetype"?

Steve
[email protected]


On Oct 3, 2013, at 2:58 PM, Caroline Wilson wrote:

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!
Caroline 		 	   		  
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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