regression loop doesn't work

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

chairake
Posts: 9
Joined: Fri Nov 30, 2018 9:31 pm

regression loop doesn't work

Postby chairake » Fri Dec 14, 2018 2:15 am

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
Attachments
auto test_q.prg
(433 Bytes) Downloaded 222 times
auto test_q.WF1
(508.77 KiB) Downloaded 202 times

EViews Matt
EViews Developer
Posts: 560
Joined: Thu Apr 25, 2013 7:48 pm

Re: regression loop doesn't work

Postby EViews Matt » Fri Dec 14, 2018 3:54 pm

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

chairake
Posts: 9
Joined: Fri Nov 30, 2018 9:31 pm

Re: regression loop doesn't work

Postby chairake » Fri Dec 14, 2018 8:51 pm

That's right!!! Thank you so much for quickly reply. :D


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 28 guests