First not NA value of series

For questions regarding programming in the EViews programming language.

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

Julia336699
Posts: 7
Joined: Fri Apr 11, 2014 6:42 am

First not NA value of series

Postby Julia336699 » Sat Apr 26, 2014 4:59 am

Hello,

how can I get the first not NA value of a series. I want to use this value (series 1) as the starting point of a new series (series 3) and add another one to it (series 2).
1 2 3
NA NA NA
NA NA NA
NA NA NA
100 0 100
102 3 103
103 4 104

Thank you very much for helping.

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

Re: First not NA value of series

Postby EViews Gareth » Sat Apr 26, 2014 5:15 am

@first(series1)

Julia336699
Posts: 7
Joined: Fri Apr 11, 2014 6:42 am

Re: First not NA value of series

Postby Julia336699 » Sun Apr 27, 2014 2:32 am

Thanks for replying. However, it does not work.
I want to calculate: series a= @first(b)+c.

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: First not NA value of series

Postby startz » Sun Apr 27, 2014 7:51 am

Works for me.

Exactly what commands did you use and what went wrong?

Julia336699
Posts: 7
Joined: Fri Apr 11, 2014 6:42 am

Re: First not NA value of series

Postby Julia336699 » Mon Apr 28, 2014 11:31 am

I used the equation series a = @first(p10) + cr_10 and then an error message come and writes @FIRST is not a Genr or series expression function?!

Thank you very much for your help.

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

Re: First not NA value of series

Postby EViews Gareth » Mon Apr 28, 2014 11:36 am


Julia336699
Posts: 7
Joined: Fri Apr 11, 2014 6:42 am

Re: First not NA value of series

Postby Julia336699 » Tue Apr 29, 2014 7:12 am

I use EViews 6.

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

Re: First not NA value of series

Postby EViews Gareth » Tue Apr 29, 2014 7:55 am

That function isn't included in EViews 6. There is no equivalent.

Julia336699
Posts: 7
Joined: Fri Apr 11, 2014 6:42 am

Re: First not NA value of series

Postby Julia336699 » Tue Apr 29, 2014 10:46 am

Ok. Thanks.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests