adjusting series

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

tvonbrasch
Posts: 569
Joined: Fri Apr 15, 2011 5:35 am

adjusting series

Postby tvonbrasch » Wed Jan 08, 2014 3:49 am

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

EViews Chris
EViews Developer
Posts: 161
Joined: Wed Sep 17, 2008 10:39 am

Re: adjusting series

Postby EViews Chris » Wed Jan 08, 2014 10:29 am

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).

tvonbrasch
Posts: 569
Joined: Fri Apr 15, 2011 5:35 am

Re: adjusting series

Postby tvonbrasch » Wed Jan 08, 2014 11:56 am

Thank you for making me aware of this function!
Thomas


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 1 guest