Page 1 of 1

Find Missing Values

Posted: Tue Jul 08, 2014 5:31 am
by jco72
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.

Re: Find Missing Values

Posted: Tue Jul 08, 2014 8:05 am
by EViews Gareth
Looks right to me.