Emanuele,
see -help foreach-; you want to use it with a -varlist-.
-search loop- would have lead you there as well.
Hope this helps,
Eva
2008/7/7 emanuele canegrati <[email protected]>:
>
> Hi Stata users,
>
>
>
>
>
> do you know if there are routines to run regressions automatically?
>
>
> I mean if I have an independent variable, say var0, n dependent variables and I want to run n regressions (i.e. reg var0 var1, reg var0 var2, ... , reg var0 varn) how can I write a loop which runs these n regressions?
>
>
>
>
>
> Thank you in advance.
>
>
>
>
>
> Kind Regards,
>
>
>
>
>
> Emanuele
>
>
>
>
> _________________________________________________________________
> News, entertainment and everything you care about at Live.com. Get it now!
> http://www.live.com/getstarted.aspx
> *
> * For searches and help try:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/