Page 1 of 1

extend a series with a moving average

Posted: Fri Oct 09, 2015 4:37 am
by eviewsuserforum
Hello.

I have a workfile 2010m1 2015m12 (it is a monthly series, so).

It contains a series myser with values from 2010m1 to 2013m12.

I created a new series aveser as

Code: Select all

series aveser = @movav(myser, 12)
It returned values from 2010m1 to 2013m12 while I hoped it 'extends' up to the last date in the workfile that is 2015m12.

How can I do that, please`?

Re: extend a series with a moving average

Posted: Fri Oct 09, 2015 8:19 am
by EViews Gareth
I'm not sure I understand the calculation you're trying to perform.

But perhaps you want something like:

Code: Select all

smpl 2010 2013 series aveser = @movav(myser(-1), 12) smpl 2014 2015 series aveser = @movav(aveser(-1), 12)

Re: extend a series with a moving average

Posted: Fri Oct 09, 2015 9:25 am
by eviewsuserforum
Thank you. It was damn easy