count number of observations

For questions regarding programming in the EViews programming language.

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

Sima77
Posts: 23
Joined: Sat May 01, 2021 10:07 am

count number of observations

Postby Sima77 » Wed Jul 12, 2023 6:42 am

Hi
I am trying to count the number of observations in a series that has missing values. I use the command seriesname.@obs, but every time I got a message that says that "NA found in matrix". I know that the series has missing data and that is why I want to count the available data point. Any help on how to solve this?

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

Re: count number of observations

Postby EViews Gareth » Wed Jul 12, 2023 6:56 am

That is the correct way to do it.

Sima77
Posts: 23
Joined: Sat May 01, 2021 10:07 am

Re: count number of observations

Postby Sima77 » Wed Jul 12, 2023 7:01 am

Thanks for your reply. Yeah, I found out what is wrong, It works now.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests