Observation Function

For questions regarding programming in the EViews programming language.

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

rmoralesaramburu
Posts: 52
Joined: Mon Nov 18, 2013 9:09 am

Observation Function

Postby rmoralesaramburu » Mon May 19, 2014 9:23 am

Hello

Is there a function that returns a vector containing a non-missing value of a series. I usually use @last, but if I want the value before @last? or the second to last?, without manipulating the sample...

I want something like

v(1) = @last(x,2) --> teorically, a formula that returns the value before the last value of a series.

Not something like

smpl @last-1 @last-1
v(1) = @last(x)

Thanks

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

Re: Observation Function

Postby EViews Gareth » Mon May 19, 2014 2:16 pm

Unfortunately not (although it is a good idea).


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest