<>
With the rolling windows, -help rolling- could be useful and spare you the 
pains of your loop thing for now. But do not put off the day you finally get 
down to the business of dereferencing -macro-s  for too long!
HTH
Martin
_______________________
----- Original Message ----- 
From: "Moo Hwan Kim" <[email protected]>
To: <[email protected]>
Sent: Thursday, April 16, 2009 9:40 PM
Subject: st: loop over variables using arch
Dear Statalisters
I would like to know what's wrong with the following message.
foreach x of varlist win1-win122{
     arch 'x' l.'x', arch(1)
' invalid name
r(198);
I attempted to run arch model for each of rolling windows, which is 122.
Could you tell me what it goes wrong?
Any comments would be appreciated.
thanks a lot
moohwan kim
_________________________________________________________________
Rediscover Hotmail®: Now available on your iPhone or BlackBerry
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Mobile2_042009
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/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/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/