Problem with FOR statement
Posted: Tue Aug 31, 2021 4:57 am
Hi! I'm using the FOR statement in my program, and got this error message:
For statement unterminated in "FOR !Z=1 TO 2"
Just to give some background, this is the relevant part of the code, where I'm defining two different samples to run the regressions:
sample muestra_est1 2001Q1 2020Q4
sample muestra_est2 2001Q1 2014Q4
for !z=1 to 2 [NOTE: THIS IS WHERE I GET THE ERROR MESSAGE AND THE PROGRAM STOPS]
smpl muestra_est{!z}
Any suggestions?
Many thanks for your time and kindness!
Ricardo
For statement unterminated in "FOR !Z=1 TO 2"
Just to give some background, this is the relevant part of the code, where I'm defining two different samples to run the regressions:
sample muestra_est1 2001Q1 2020Q4
sample muestra_est2 2001Q1 2014Q4
for !z=1 to 2 [NOTE: THIS IS WHERE I GET THE ERROR MESSAGE AND THE PROGRAM STOPS]
smpl muestra_est{!z}
Any suggestions?
Many thanks for your time and kindness!
Ricardo