Page 1 of 1

check if series is all NAs (has data other than NA)

Posted: Wed Feb 03, 2021 12:13 pm
by amrsherif
Is there a quick and built-in way to check if a series has data? From what i understand, @isna is for individual observations as opposed to the entire series.

Re: check if series is all NAs (has data other than NA)

Posted: Wed Feb 03, 2021 12:31 pm
by amrsherif
i suppose one way is to check the min or max value. If they are NA, then i can assume it's all NAs

Not sure how much overhead there is with this method though. I suspect it will slow things down significantly if there are hundreds/thousands of series

Re: check if series is all NAs (has data other than NA)

Posted: Wed Feb 03, 2021 12:31 pm
by EViews Gareth
seriesname.@obs>0

Re: check if series is all NAs (has data other than NA)

Posted: Wed Feb 03, 2021 1:09 pm
by amrsherif
Perfect. Thanks