Observation Function
Posted: 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
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