Page 1 of 1

Observation Function

Posted: Mon May 19, 2014 9:23 am
by rmoralesaramburu
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

Re: Observation Function

Posted: Mon May 19, 2014 2:16 pm
by EViews Gareth
Unfortunately not (although it is a good idea).