Page 1 of 1

NA in series

Posted: Fri May 13, 2016 1:09 am
by stefanp
I have a probably rather simple question. A series contains 1 or NA.

I want to get rid of the NAs with the following command:

Code: Select all

if series <>1 then series=0 endif
End up with a message: "NA found in matrix in "SERIES". Doesn't really help

Re: NA in series

Posted: Fri May 13, 2016 1:24 am
by EViews Gareth
You cannot use series in an if condition.

Use the @recode function.