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

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

amrsherif
Posts: 99
Joined: Mon Jul 23, 2018 4:34 pm

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

Postby amrsherif » Wed Feb 03, 2021 12:13 pm

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.

amrsherif
Posts: 99
Joined: Mon Jul 23, 2018 4:34 pm

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

Postby amrsherif » Wed Feb 03, 2021 12:31 pm

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

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

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

Postby EViews Gareth » Wed Feb 03, 2021 12:31 pm

seriesname.@obs>0
Follow us on Twitter @IHSEViews

amrsherif
Posts: 99
Joined: Mon Jul 23, 2018 4:34 pm

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

Postby amrsherif » Wed Feb 03, 2021 1:09 pm

Perfect. Thanks


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 21 guests