Find Missing Values
Posted: 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.
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.