Hello Everyone

I have a problem with my code

If I do not use the forecast command in the estimation command, then Dynare works well

But then I use the command forecast = 4 as following

esimation(…,forecast=4)data_pid data_wp data_c data_i data_R E_t data_y data_pic;

, then Dynare report the following error

"Matrix dimensions must agree.

Error in prior_posterior_statistics_core (line 206)

yf = yf+repmat(SteadyState’,horizon+maxlag,1);

Error in prior_posterior_statistics (line 222)

[fout] = prior_posterior_statistics_core(localVars,1,B,0);

Error in dynare_estimation_1 (line 821)

prior_posterior_statistics(‘posterior’,dataset_);

Error in dynare_estimation (line 89)

dynare_estimation_1(var_list,dname);

Error in ALEstim_pet_modi (line 1010)

dynare_estimation(var_list_);

Error in dynare (line 180)

evalin(‘base’,fname) ;

Error in Main (line 3)

dynare ALEstim_pet_modi "

without forecast=4 inside estimation( ); it works well

Can anyone help me to detect this problem

With best wishes