--- On Fri, 12/2/10, Cindy Gao wrote:
> PS I also try use estout for the same thing, it works fine
> and exports the results, the problem is that when I append
> (as I run many regressions that I want to compare) it lists
> them one below the other but I need them side by side like
> in outreg2, and I don't know how to store estimates and all
> that to have them side by side in the table using estout.
The simplest way is to use the -eststo:- prefix, like in the
example below
*---------------------- begin example -------------------
sysuse auto, clear
eststo clear
eststo : nl (mpg = {b0} + {b1}*price + {b1}*weight + ///
{b1}*displ + {b0}/20*gear_ratio - ///
{b0}/20*foreign + {b1}*length) ///
if foreign == 1
eststo : nl (mpg = {b0} + {b1}*price + {b1}*weight + ///
{b1}*displ + {b0}/20*gear_ratio - ///
{b0}/20*foreign + {b1}*length) ///
if foreign == 0
esttab
*--------------------- end example ----------------------
( For more on how to use examples I sent to statalist see:
http://www.maartenbuis.nl/stata/exampleFAQ.html )
Also see the wide variety of examples on:
http://repec.org/bocode/e/estout/
Hope this helps,
Maarten
--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany
http://www.maartenbuis.nl
--------------------------
*
* 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/