I have two times series, x1 and x2 dated 1997 to 2013. Both series have negative observations in some periods, that I would like to turn into NA. Is there a simple way to do this? I have tried
Code: Select all
if x1>0 then x1=na
else x1=x1
endifbut that doesn't work. I get an error message saying "NA found in matrix in..."
I am using EViews 9.
Thanks for help!
