Different ways to check for NA
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
Different ways to check for NA
What is the difference between @isna(a) and a=na in if statements? Which one would be better or faster? The result is the same.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Different ways to check for NA
They're essentially the same.
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: Different ways to check for NA
The former is a bit easier to read when using expressions, as in the admittedly artificial example
versus
Code: Select all
(log(y)*(exp(x)=37))=naCode: Select all
@isna(log(y)*(exp(x)=37))-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Different ways to check for NA
And you can use @isna inside other functions
Who is online
Users browsing this forum: No registered users and 2 guests
