Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: Forreach loop with esttab


From   Muhammad Ramzan <[email protected]>
To   [email protected]
Subject   st: Forreach loop with esttab
Date   Sun, 12 Jan 2014 14:40:41 +0500

Assalam-o-Alaikum

Hi Everyone I am using the foreach lopp command with esttab command.
here in the final table i should get results of three equations. but
here i am only getting the results of last euquation that is, in which
is dependent variable is  " displacement ".

foreach yvar in mpg price displacement {
reg `yvar' foreign weight
estimates store `yvar'1

esttab `yvar' using example, t scalars(F ll chi2 df_m df_r) nodepvars  replace

}



Regards
Muhammad Ramzan
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index