Hi, I have a question about IF command. I’m using EViews 6. I tried the following program with no success.
series a
if x>0 then
series a=1
endif
x is a numerical series as follows:
3
4
-3
10
The program keeps producing a with
NA
NA
NA
NA
when it should produce
1
1
NA
1
What am I doing wrong?
Thank you so much for your advice.
