Help! Error when estimating a dsge model

I am trying to estimate a DSGE model ,when we get to the estimation stage, I get the following error message:

??? Error using ==> minus
Matrix dimensions must agree.

Error in ==> set_prior at 264
if any(bayestopt_.p5-old.bayestopt_.p5)

Error in ==> dynare_estimation_1 at 104
[xparam1,estim_params_,bayestopt_,lb,ub,M_] =

Error in ==> dynare_estimation at 62

Error in ==> cz at 662

Error in ==> dynare at 132
evalin(‘base’,fname) ;

I would really appreciate it if someone could take a look and point me in the right direction. Thanks a lot!
cz.mod (9.26 KB)

I cannot replicate your problem because you did not post the datafile.

Also, which version of Dynare are you using?


sorry,I can’t upload the mat file,so i have to upload the excle file instead,but add .m in the end,and my dynare version is 4.2.0.Thank you so much!
cz_data.m (4.11 KB)
cz.xlsx.m (15.2 KB)

Using Dynare 4.2.4, I get a different error from yours:

Error in computing likelihood for initial parameter values
{Error using print_info (line 42)
Blanchard Kahn conditions are not satisfied: indeterminacy

I think you should do two things:

] Upgrade to Dynare 4.2.4/:m]
] Change the initial values for you estimated parameters until you get a stable solution for the initial guess/:m][/ul]


Sorry for this intervention but I have the same problem and I try to upgrade to 4.2.4 from the site web but I did not find this version can you guide me please? thank you very much

Always use the most recent stable version, which would be 4.4.1.