Out of sample analysis - Expanding Windows
Posted: Mon Feb 11, 2013 12:23 pm
Hello,
I am trying to perform an out of sample analysis in expanding windows automatically, but unfortunately I lack any programming skills, regardless my effort reading the Programming References.
I have a monthly sample from 1927m01 2011m12. I have defined the equation I want to use. My question is that I want to use the first 20 years of data (i.e. 1927m01 1946m12) to forecast one month (i.e. 1947m01). After that, I want to use the first 20 years and one month of actual data (i.e. 1927m01 1947m01) to forecast the next month (i.e. 1947m02), and so on, until 2011m12. The objective is to store the forecasted values in order to compute the errors between them and the actual values and be able to perform the out-of sample analysis. I have been trying to create a program in order to do this, to avoid estimating 880 different forecasts manually, but I don’t know if it is possible to do it automatically.
Looking forward to hearing some suggestions,
Best Regards,
Nuno
I am trying to perform an out of sample analysis in expanding windows automatically, but unfortunately I lack any programming skills, regardless my effort reading the Programming References.
I have a monthly sample from 1927m01 2011m12. I have defined the equation I want to use. My question is that I want to use the first 20 years of data (i.e. 1927m01 1946m12) to forecast one month (i.e. 1947m01). After that, I want to use the first 20 years and one month of actual data (i.e. 1927m01 1947m01) to forecast the next month (i.e. 1947m02), and so on, until 2011m12. The objective is to store the forecasted values in order to compute the errors between them and the actual values and be able to perform the out-of sample analysis. I have been trying to create a program in order to do this, to avoid estimating 880 different forecasts manually, but I don’t know if it is possible to do it automatically.
Looking forward to hearing some suggestions,
Best Regards,
Nuno