Statalist


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

Re: st: Problem with outreg2 after negative binomial regression


From   Fernando.Terres@upc.edu
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Problem with outreg2 after negative binomial regression
Date   Sun, 16 Aug 2009 11:52:58 +0200

Thanks to both (it seems that you have the same problem) so, for example:

use http://www.stata-press.com/data/r10/rod93.dta
tab cohort, g(i_c)
nbreg deaths age_mos i_c*, exposure(exposure)
outreg2 using myfile
seeout using "myfile.txt"

Gives the following result:

		(1)		(2)
VARIABLES	deaths		lnalpha

age_mos		-0.0518***
		(0.00509)
i_c1		0.471
		(0.433)
i_c2		0.180
		(0.433)
Constant	-2.108***	-0.465
		(0.326)		(0.287)

Observations	21		21
Standard errors in parentheses
*** p<0.01, ** p<0.05, * p<0.1

So, one model (nbreg) uses two columns; messing the contents if you  
are comparing several models (i.e.: OLS, NBREG, NBREG-ROBUST, POISSON,  
etc).


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



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index