> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Xiaojin Chen
> Sent: Tuesday, March 07, 2006 12:55 PM
> To: [email protected]
> Subject: st: help needed for fixed effects Negative Binominal regression
> model
>
> Hello everyone:
>
> I was just added to this list today and would like get some help about
> fixed
> effects negative binominal regression model.
>
> I will be using a longitudinal data such as Adolescent Health. If I want
> to run
> a fixed effects negative binominal regression model, how should the data
> be
> structured? Add Health used the wide format, with each individual having
> one
> line and three variables measuring the same concept at three time points
> (Add
> Health has three waves so far). I guess I should change it to the long
> format,
> that is, each time point should have one line and each individual should
> have
> three lines. Can I re-structure the data in Stata?
>
Yes. See [D] -reshape- Also, the FAQ by Nick Cox "I am having problems
with the reshape command. Can you give further guidance?" located at
http://www.stata.com/support/faqs/data/reshape3.html
might be helpful.
> Second, I have no experience in STATA. If anyone has experience using
> fixed
> effects Poisson or negative binominal model, can you share some of the
> syntax
> with me? I checked the manual and it looks it's not too hard, but any help
> will
> be appreciated.
The basic syntax is:
-xtpoisson y x, i(id) fe-
-xtnbreg y x, i(id) fe-
You might also try the dialog boxes.
Scott
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/