NA in series

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

stefanp
Posts: 63
Joined: Wed Sep 30, 2015 12:24 am

NA in series

Postby stefanp » Fri May 13, 2016 1:09 am

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Re: NA in series

Postby EViews Gareth » Fri May 13, 2016 1:24 am

You cannot use series in an if condition.

Use the @recode function.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 1 guest