Rebase series

For questions regarding programming in the EViews programming language.

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

javiersan
Posts: 184
Joined: Mon Jan 19, 2009 8:18 am

Rebase series

Postby javiersan » Wed Mar 11, 2009 5:08 am

Hi,

Is there a function for rebasing a series (e.g. making 2000m1=100, so divide all the points in the data series by the value at 2000m1 and multiply times 100)?

Thanks,

Javier

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

Re: Rebase series

Postby EViews Gareth » Wed Mar 11, 2009 8:09 am

There is no inbuilt function, but obviously it is straight forward to perform the division and multiplication manually.

javiersan
Posts: 184
Joined: Mon Jan 19, 2009 8:18 am

Re: Rebase series

Postby javiersan » Wed Mar 11, 2009 11:25 am

Sure, in any case @elem() does half of the job in a programming context.

fmramos
Posts: 116
Joined: Fri Sep 19, 2008 7:30 am
Location: Sao Paulo / Brazil

Re: Rebase series

Postby fmramos » Tue Mar 24, 2009 10:38 am

U can use @elem with some function as @sum or @mean. And u can set data parameters as "2008:01 2008:12" to set the base. For instance,

ser02 = ser01/@mean(ser_01, "2008:01 2008:12")*100

So u have ser02 as your recoded series.

Good luck.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests