Dear all,

I try to run a recursive forecast with the following command:

estimation(datafile=trial27_dat,nobs=([86:87]),mh_replic=2000,mh_nblocks=2,mh_jscale=0.41,presample=4,mode_check,forecast=2,mode_file=trial27_mode,nodiagnostic);

But each time, when dynare tries to do the forecast after the last estimation (in this case, the estimation with 87 data points), I obtain the following error message when dynare tries to plot the forecast graphs:

MH: Out of sample forecasts…

Period = 1

Period = 2

MH: Out of sample forecasts, done!

??? Index exceeds matrix dimensions.

Error in ==> dynare_estimation at 1301

plot(1:k,data2(k2,end-k+1:end,k2)’,’-k’,‘linewidth’,2);

Error in ==> trial27 at 387

dynare_estimation(var_list_);

Error in ==> dynare at 26

evalin(‘base’,fname) ;

I have a total of 95 data points, so I don’t see any reason there is a problem of index exceeding matrix dimension… Does anyone know why this might happen?

The curious thing is that when dynare runs the first estimation with 86 data points, it has no problem plotting the forecast graph… it is always a problem with the last estimation (for instance if I change nobs=([85:87]), it is still the estimation with 87 data points that have the problem…

Also, does anyone know what the two green lines and the two red lines in the forecast graphs correspond to? The blue line should be the data, right?

Thanks.

Regards,

Wing