Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: programming loops for regressions


From   "Eva Poen" <[email protected]>
To   [email protected]
Subject   Re: st: programming loops for regressions
Date   Mon, 7 Jul 2008 22:40:29 +0100

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/



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