Series Adjust by configurable interpolation

For questions regarding programming in the EViews programming language.

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

diggetybo
Posts: 152
Joined: Mon Jun 23, 2014 12:04 am

Series Adjust by configurable interpolation

Postby diggetybo » Wed Jan 13, 2016 10:39 am

Hey again,

I'm interested in adjusting an existing series "x" in the following manner:

Code: Select all

x.adust = @cnorm(3+1.5*(x2))
Where x2 is also an existing series, but ideally, I'd like x2 to not exist. It creates clutter, and it's just a linear sequence from 10 to 45 that is interpolated to match the number of obs in my workfile. To save object space in the workfile, I'd like to internalize it's values within the adjust operation. Is it possible use an interpolation in place of the series? Or if not, is there some other way to avoid having to have a dedicated series object for the interpolated values? Something like:

Code: Select all

x.adjust = @cnorm(3+1.5*(10 .. 45 ^))
Unfortunately, this returned syntax error. I know series.adjust has the power to interpolate, but perhaps I'm not totally sure on how to harness that power to do what I want (which is to replace my dedicated interpolated series objects with a line of code executed when performing .adjust). Please have a look, and leave your thoughts,

Thanks

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

Re: Series Adjust by configurable interpolation

Postby EViews Gareth » Wed Jan 13, 2016 10:44 am

Isn't X2 just a trend? Can't you use @trend?

diggetybo
Posts: 152
Joined: Mon Jun 23, 2014 12:04 am

Re: Series Adjust by configurable interpolation

Postby diggetybo » Wed Jan 13, 2016 10:53 am

Oh yes, I'm sure that would work. I guess I reverted to one dimensional thinking. Thanks for the much needed new approach to the problem. :D


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest