by Grant » Thu Apr 02, 2015 3:17 am
Thanks Jpfeifer.
When I do recursive forecasting, Dynare shows some error messages: the first one is that
"posterior_moments: There are not enough draws computes to compute HPD Intervals. Skipping their computation.
posterior_moments: There are not enough draws computes to compute deciles. Skipping their computation."
The second one is that "
Windows returned error message: The handle is invalid." After this message, the code got stuck.
Here attached the log file. Could you help me find out a way to fix this problem?
Another question is: My understanding is that estimation is separated from forecasting. Hence, if I want to do recursive forecasting, what I need to do is
(1) Estimate the model M using data in period t = 1,2,... R (R<T), and obtain the parameters Theta(R). I can use the parameters to do 1-step ahead forecast, 2-step ahead forecast and so on with information until t= R.
(2) Estimate the model M using data in period t = 1,2,... R, R+1, and obtain the parameters Theta(R+1). Using Theta(R+1) you can do 1-step, 2-step ahead forecast and so on with information until t= R+1.
(3) and so on.
Thus, in my case, I choose the last 30 periods of the data set as forecasting sample, which means that dynare needs to do only 30 times estimation. I guess that the estimation part is the most time-consuming task. Since my code only need about 1 hour to just do estimation, if my understand about recursive forecasting is right, why dynare needs several days to get the attached forecasting results?
Hope to get your help.
Regards,
- Attachments
-
- code.pdf
- (289.6 KiB) Downloaded 369 times