Find Missing Values

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

jco72
Posts: 2
Joined: Mon Jun 09, 2014 6:23 am

Find Missing Values

Postby jco72 » Tue Jul 08, 2014 5:31 am

I'm trying to create a check that will loop through some series and put any of them in a group if the last few months of history contain any NAs. Here's the code I'm using:

group gr_missing
smpl 2012:1 2014:4
for %s xrcaus indsa hussa husonesa husmulsa hus husone husmul
if @nas({%s}) >0 then
gr_missing.add {%s}
else
endif
next

Is this the correct coding? It runs, but it will populate the group with series that are not missing any values.

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

Re: Find Missing Values

Postby EViews Gareth » Tue Jul 08, 2014 8:05 am

Looks right to me.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 1 guest