Expanding window regression
Posted: Tue Sep 29, 2009 4:40 am
Dear E-views users,
I'm struggling to find a suitable way to do the following
I have to estimate different models (AR(1), multiple linear regression, simple linear regression), using an expanding window regression.
After that, I want to compare the out-of-sample one step ahead forecast among all these models to check whether is the best one in predicting.
I'm using monthly observations. Let me explain how I would like the expanding window regression to work: let's say I want to forecast July with observations from January to June, keep this one step ahead forecast in a series. Than, forecast August using observation from January to July, and add the latter forecast to the same series created before. I've checked the 'roll' examples, but it looks to me that the window size is set to 20, and therefore it is does not allow to change the size. Finally, I want this loop to stop at a certain month, let's say Decemeber, and then start again with the next year (i.e. again July with observations from January up to June etc). I'm struggling since a couple of days but up to now I had no luck.
Thanks
Marco
I'm struggling to find a suitable way to do the following
I have to estimate different models (AR(1), multiple linear regression, simple linear regression), using an expanding window regression.
After that, I want to compare the out-of-sample one step ahead forecast among all these models to check whether is the best one in predicting.
I'm using monthly observations. Let me explain how I would like the expanding window regression to work: let's say I want to forecast July with observations from January to June, keep this one step ahead forecast in a series. Than, forecast August using observation from January to July, and add the latter forecast to the same series created before. I've checked the 'roll' examples, but it looks to me that the window size is set to 20, and therefore it is does not allow to change the size. Finally, I want this loop to stop at a certain month, let's say Decemeber, and then start again with the next year (i.e. again July with observations from January up to June etc). I'm struggling since a couple of days but up to now I had no luck.
Thanks
Marco