Statalist


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

st: AW: Problem with outreg2 after negative binomial regression


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: Problem with outreg2 after negative binomial regression
Date   Sat, 15 Aug 2009 21:26:54 +0200

<> 

Have to add your own calculations:


*************
vers 10.1

webuse rod93, clear
tab cohort, gen(coh)
generate logexp=ln(exposure)

nbreg deaths coh2 coh3, /* 
 */ exposure(exp)

//get missing stats
qui{
	nlcom exp([lnalpha]_b[_cons])
	mat A=r(V)
	local se=A[1,1]^0.5
}

outreg2 using myfile, /* 
*/ adds("Alpha", e(alpha), /* 
 */ "Alpha SE", `se') /* 
*/ replace eqdrop(lnalpha)
*************



HTH
Martin

-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von
[email protected]
Gesendet: Samstag, 15. August 2009 20:31
An: [email protected]
Betreff: st: Problem with outreg2 after negative binomial regression

I don't know if the fault is on my side, but after nbreg, outreg2  
makes some errors (it seems to be unable to locate alpha and its se).
I´m using an updated outreg2 on stata 10/MP




*
*   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