Page 1 of 1

adjusting series

Posted: Wed Jan 08, 2014 3:49 am
by tvonbrasch
Hi

I have several series with nas in the beginning, in the middle and at the end of the sample, e.g,
x= na na na 2 na 3 na 4 na 5 na 6 na na na na na na na na
y= na na na na 4 na 2 na na 8 na 1 na 9 na 3 na 5 na na

How can I use the adjust command to interpolate the nas linearly in the middle of the sample only, i.e,. leave the nas at the beginning and end of the sample unchanged?
Sincerely
Thomas von Brasch

Re: adjusting series

Posted: Wed Jan 08, 2014 10:29 am
by EViews Chris
if all you want to do is interpolate missing values in a series, use the interpolate procedure off a series instead.

x.iploate xi

will create a new series xi with internal missings replaced by linearly interpolated values.

Note that early builds of 8 were interpolating the end values as well - if you're seeing this then update to the latest version (which matches the behaviour in v7).

Re: adjusting series

Posted: Wed Jan 08, 2014 11:56 am
by tvonbrasch
Thank you for making me aware of this function!
Thomas