Page 1 of 1

regression loop doesn't work

Posted: Fri Dec 14, 2018 2:15 am
by chairake
Hi,

I am sorry for leaving many questions in the post because I am a programming beginner.
I attempt to code auto least square loop between
G_MA3 and G_MA3_TC
I_MA3 and I_MA3_TC
M_MA3 and M_MA3_TC
MS_MA3 and MS_MA3_TC
X_MA3 and X_MA3_TC

but my coding doesn't work could you please correct them. I attach file as below

thank you so much

Re: regression loop doesn't work

Posted: Fri Dec 14, 2018 3:54 pm
by EViews Matt
Hello,

If all you need is to run those five estimations, you were making the program much more complicated than it needed to be:

Code: Select all

for %n G_MA3 I_MA3 M_MA3 MS_MA3 X_MA3
   equation eq_{%n}.ls @pcy({%n}) c @pcy({%n}_TC)
next

Re: regression loop doesn't work

Posted: Fri Dec 14, 2018 8:51 pm
by chairake
That's right!!! Thank you so much for quickly reply. :D