New to Eviews, Question on string loop

For questions regarding programming in the EViews programming language.

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

abcde
Posts: 1
Joined: Sun Nov 20, 2011 9:05 pm

New to Eviews, Question on string loop

Postby abcde » Sun Nov 20, 2011 9:12 pm

I am new to Eviews, and try to run this code but failed. the error said that W10is not defined in “IF W{%Y}(0+1)<>NA THEN"

Could anyone tell what is the error and how to correct it? Thank you.

For %Y= 10 11 12 154 187

For !i=0 to 32
If w{%Y}(!i+1) <> na then
smpl 190+!i 205+!i
%myeq_name="w{%Y}eqq{!i}"
endif
Next
Next

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: New to Eviews, Question on string loop

Postby EViews Gareth » Mon Nov 21, 2011 8:45 am

Is there an object called W10 in your workfile?


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests