generating series
Posted: Sat Aug 11, 2012 1:35 pm
good afternoon !
I am new to programming in eviews and I have a rather simple question. I want to generate a series x that takes the value 1 if y is 0 and 0 otherwise. I run the following code but I get an error:( I will appreciate a lot if anybody can offer some feedback...
for i=1:1910
if y(i)=0
genr x(i)=1
else
genr x(i)=0
endif
Thanks a lot :)
Selin
I am new to programming in eviews and I have a rather simple question. I want to generate a series x that takes the value 1 if y is 0 and 0 otherwise. I run the following code but I get an error:( I will appreciate a lot if anybody can offer some feedback...
for i=1:1910
if y(i)=0
genr x(i)=1
else
genr x(i)=0
endif
Thanks a lot :)
Selin