Dear Professor, please allow me some questions.
1. If I forecast (horizon=4) only one variable with the estimation command (not recursively, but using the entire dataset and forecasting once), dynare returns me a 5x1 matrix (for both oo_.MeanForecast.Mean.d and oo_.PointForecast.Mean.d) , for which I have realized that the first row is the (last) observation at time t and forecasts for t+1, t+2, t+3 and t+4 follow in row 2, 3, 4, and 5 respectively. Is this matrix’s content and formulation correct ??
2. In the estimation command I have set the prefilter option (=1) for demeaning the data before the estimation. So the forecasts that Dynare returns (in the above matrices) are demeaned aswell?? If not, how can I compare them with the actual data then (for computing the forecasts errors) ?? Do I have to add the sample mean back to the forecasts and then compare? Is that automatic in dynare?
3. When I click on the 'options' at the end of the dynare run I got the following error in Matlab:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.mathworks.mlwidgets.workspace.ClassicWhosInformation.<init>(ClassicWhosInformation.java:20)
at com.mathworks.mlwidgets.workspace.ClassicWhosInformation.getInstance(ClassicWhosInformation.java:38)
at com.mathworks.mlwidgets.workspace.WhosRecordlistModel.setWhosInformation(WhosRecordlistModel.java:45)
at com.mathworks.mlwidgets.array.editors.MatlabWorkspaceLikeModel.setSuperWhosInformation(MatlabWorkspaceLikeModel.java:379)
at com.mathworks.mlwidgets.array.editors.MatlabWorkspaceLikeModel.access$100(MatlabWorkspaceLikeModel.java:35)
at com.mathworks.mlwidgets.array.editors.MatlabWorkspaceLikeModel$1.run(MatlabWorkspaceLikeModel.java:392)
etc......Any idea what is that??
4. In a forecasting race (with DSGE, BVAR, TVP-BVAR and other models) which forecasts (from the DSGE) would you use for comparing them with the rest models?? The PointForecasts or the MeanForecasts ?? I know the difference about the future shocks uncertainty. I am just not sure which one is better to use.
5. According to your above suggestion I am using a sequence of estimation commands calling different datafiles each time. But I have the impression that dynare keeps the same number of observations although my datafile should grow by one observation point in the second estimation command (as you can see in the xls_range). So I use:
- Code: Select all
estimation(nograph,prefilter = 1,datafile = DSGE, xls_sheet=DSGE_vintage_Dynare, xls_range=B3:K113, mode_compute = 4, mh_nblocks = 2, mh_replic = 150, mh_drop = 0.35, mh_jscale = 0.35, forecast = 4) d;
estimation(nograph,prefilter = 1,datafile = DSGE, xls_sheet=DSGE_vintage_Dynare, xls_range=L3:U114, mode_compute = 4, mh_nblocks = 2, mh_replic = 150, mh_drop = 0.35, mh_jscale = 0.35, forecast = 4) d;
but what I see is that for both estimations it uses the same number of observations (110) while it should use 110 obs for the first estimation and 111 for the second one. Is there anything wrong in my commands? Where can I find in my workspace what dynare reads as datafile ??
Much appreciated