Page 1 of 1

New to Eviews, Question on string loop

Posted: Sun Nov 20, 2011 9:12 pm
by abcde
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

Re: New to Eviews, Question on string loop

Posted: Mon Nov 21, 2011 8:45 am
by EViews Gareth
Is there an object called W10 in your workfile?