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]
Re: st: Forreach loop with esttab
From
"Li Chuntao (Tony)" <[email protected]>
To
[email protected]
Subject
Re: st: Forreach loop with esttab
Date
Thu, 16 Jan 2014 10:14:03 +0800
Please try the following please!
foreach yvar in mpg price displacement {
reg `yvar' foreign weight
estimates store `yvar'
}
esttab mpg price displacement using example, t scalars(F ll chi2 df_m
df_r) nodepvars replace
On Sun, Jan 12, 2014 at 5:40 PM, Muhammad Ramzan <[email protected]> wrote:
> 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/
*
* 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/