Page 1 of 2
moving average
Posted: Thu Nov 06, 2008 3:33 pm
by skit
Help to learn more about moving average. Who knows as this method on EViews is realised? If can lay out a source code or algorithm.
P.S. The information only to EViews, how the method works in other programs I know.
Re: moving average
Posted: Thu Nov 06, 2008 4:26 pm
by EViews Gareth
Are you talking about MA estimation (as in ARMA models), or the @MOVAV/@MAV functions?
Re: moving average
Posted: Fri Nov 07, 2008 5:06 am
by skit
@MOVAV/@MAV functions
Re: moving average
Posted: Fri Nov 07, 2008 8:31 am
by EViews Gareth
ok, I'm not quite sure I understand what you are asking then, but the @movav function is quite simply the average of the values of a series over the current and previous time periods (or observations). i.e.
Re: moving average
Posted: Tue Aug 16, 2016 9:37 am
by AngieL
Hi,
I am trying to do the moving average but this message shows up :
@MOVAV is an illegal or reserved name.
Why is this happening?
Re: moving average
Posted: Tue Aug 16, 2016 9:44 am
by EViews Gareth
Hard to know what you're doing wrong without knowing what you're doing.
Re: moving average
Posted: Tue Aug 16, 2016 10:19 am
by AngieL
I copy pasted the formula mentioned and this is what I get the attached.
Thanks,
Angie
Re: moving average
Posted: Tue Aug 16, 2016 10:55 am
by EViews Gareth
What are you trying to do with the moving average?
Re: moving average
Posted: Tue Aug 16, 2016 11:08 am
by AngieL
It is mentioned in one of the papers that in order to make the Random Effects legit (to pass the Hausman test) I need the averages of the variables that is how they did it and I am trying to do the same, but it is not working. This is the paper :
https://www.ecb.europa.eu/pub/pdf/scpwp ... ddd523a402
Could you please help it would be so much appreciated?
Thank you,
Angie
Re: moving average
Posted: Tue Aug 16, 2016 11:17 am
by EViews Gareth
If you're trying to use the moving average as a regressor, then include it as a regressor.
Re: moving average
Posted: Tue Aug 16, 2016 11:20 am
by AngieL
No I want to have the moving average for every variable and then use them as regressors. Is that do-able?
Re: moving average
Posted: Tue Aug 16, 2016 11:33 am
by EViews Gareth
Yes, just add the moving average of each variable as a regressor.
Re: moving average
Posted: Tue Aug 16, 2016 11:34 am
by AngieL
But why do I get that error message
Re: moving average
Posted: Tue Aug 16, 2016 11:38 am
by EViews Gareth
Because you aren't including it as a regressor. There's no equation to be seen.
Re: moving average
Posted: Tue Aug 16, 2016 11:46 am
by AngieL
So how do I do that?
Please help!