I am using a richly-specified DSGE model to do out of sample forecasting. I got data including total 116 periods. I set period 1 to period 87 as in sample estimation and period 87 to period 116 as out of sample forecasting. So I set code in the estimation block as:
- Code: Select all
estimation(datafile=data100,mh_jscale=0.145, mode_compute =4, mh_nblocks = 1, mh_replic=200000,nobs=[87:116], forecast=8)y
My question is:
Q1: Where is the forecasting results stored? Is it should be stored in oo_.ResursiveForecast? Is so, should I use the mean in oo_.ResursiveForecast as the forecasting value? Besides, I reviewed some post and get a little bit confused. Since I set nobs=[87:116] in the code, should I use period 87 to period 116 in the data file as the actual value, or period 88 to period 117 as the actual value, in order to computer RMSE?
Q2: As in my code, I want to do up to 8 periods ahead forecast. My understand is that since I set nobs=[87:116] which means that I just use period 1 to period 86 to do in sample estimation, then there should be 30 1-period ahead forecasting results, and 29 2-period ahead forecasting results,..., and 23 8-periods ahead forecasting results. For example, the first 2-periods ahead forecast should be period 88, rather than period 89. However, the matrix of the variable to be forecasted in oo_.ResursiveForecast is 30*8! Am I wrong?
I am looking forward to your reply. Any help is highly appreciated.
Regards,