Statalist


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

AW: st: Problem with outreg2 after negative binomial regression


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   AW: st: Problem with outreg2 after negative binomial regression
Date   Mon, 17 Aug 2009 13:22:08 +0200

<> 


"So, one model (nbreg) uses two columns; messing the contents"




Not so! My solution used the -eqdrop()- option which is designed for this
problem. Run my code here:

http://www.stata.com/statalist/archive/2009-08/msg00764.html



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von
[email protected]
Gesendet: Sonntag, 16. August 2009 11:53
An: [email protected]
Betreff: Re: st: Problem with outreg2 after negative binomial regression

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/


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index