Statalist


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

st: Re: add results of lincom postestimation command to a table using outreg2


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: add results of lincom postestimation command to a table using outreg2
Date   Fri, 3 Apr 2009 01:03:33 +0200

<>

****
sysuse auto, clear
reg pr we rep tu tr
lincom weight+trunk
local coef=r(estimate)
local se=r(se)
local t `=`coef'/`se''
outreg2 using myfile, addstat("estimate", `coef', "standard error", `se', "t statistic", `t')
seeout using "myfile.txt"
****

Re Excel, see - help outreg2, mark(s_11) -

HTH
Martin
_______________________
----- Original Message ----- From: "Joshua A Shindell" <shindell@uwm.edu>
To: <statalist@hsphsun2.harvard.edu>
Sent: Friday, April 03, 2009 12:45 AM
Subject: st: add results of lincom postestimation command to a table using outreg2


Hello Statalist,

I am trying to add the results of the lincom postesimation command to a table of regression output created by outreg2 using the "addstat" option. I am having two problems, the first is that I am only able to add the estimate, not the standard error or t-statistic, and that I cannot get the syntax correct to have the table created as an excel file.

The following will add the estimate of x2+x3:

 reg y x1 x2 x3
 lincom x2 + x3
 local F1 = r(estimate)
 outreg2 using "myfile", addstat(Test1, `r(estimate)')

I'm having trouble with the proper syntax to add the standard error and/or t-statistic, and have the table written as an excel file.

Thank you for any suggestions!

Joshua A. Shindell


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