Eva, Martin,
thank you very much indeed for your answers. It perfectly worked.
Emanuele
> Date: Mon, 7 Jul 2008 22:40:29 +0100
> From: [email protected]
> To: [email protected]
> Subject: Re: st: programming loops for regressions
>
> 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 :
>>
>> 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/
_________________________________________________________________
Connect to the next generation of MSN Messenger�
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
*
* 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/