Statalist


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

Re: st: -outreg2- for nonlinear regressions?


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: -outreg2- for nonlinear regressions?
Date   Fri, 12 Feb 2010 00:29:01 -0800 (PST)

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



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