How to do OUT OF SAMPLE forcasting
Posted: Fri Jul 08, 2011 3:10 pm
Hi, I want to do the out of sample forecasting. And I am a beginner to do programming.
My sample data ranges from 1929m07 to 2009m12. The equation is Yt=a+bXt-1. I want to use 20 years monthly return(1929m07 to 1948m 07) to forecasting the return of 1948m08 and then use 1929m08 to 1948m08 data to forecasting the return of 1948m09........on and on ....
Who knows how to do this programming...or you can teach me how to do the out of sample test.
Thank you so much.
My sample data ranges from 1929m07 to 2009m12. The equation is Yt=a+bXt-1. I want to use 20 years monthly return(1929m07 to 1948m 07) to forecasting the return of 1948m08 and then use 1929m08 to 1948m08 data to forecasting the return of 1948m09........on and on ....
Who knows how to do this programming...or you can teach me how to do the out of sample test.
Thank you so much.