Help! Error when estimating a dsge model

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Help! Error when estimating a dsge model

Postby chenzheng0615 » Wed Nov 23, 2011 11:08 am

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_] =
set_prior(estim_params_,M_,options_);

Error in ==> dynare_estimation at 62
dynare_estimation_1(var_list,varargin{:});

Error in ==> cz at 662
dynare_estimation(var_list_);

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!
Attachments
cz.mod
(9.26 KiB) Downloaded 110 times
chenzheng0615
 
Posts: 2
Joined: Wed Apr 13, 2011 2:50 pm

Re: Help! Error when estimating a dsge model

Postby SébastienVillemot » Fri Nov 25, 2011 11:31 am

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

Also, which version of Dynare are you using?

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: Help! Error when estimating a dsge model

Postby chenzheng0615 » Sun Nov 27, 2011 3:20 pm

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!
Attachments
cz_data.m
(4.11 KiB) Downloaded 98 times
cz.xlsx.m
this is an excel file ,remove the .m
(15.24 KiB) Downloaded 129 times
chenzheng0615
 
Posts: 2
Joined: Wed Apr 13, 2011 2:50 pm

Re: Help! Error when estimating a dsge model

Postby SébastienVillemot » Wed Dec 21, 2011 3:27 pm

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

Code: Select all
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
  • Change the initial values for you estimated parameters until you get a stable solution for the initial guess

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: Help! Error when estimating a dsge model

Postby selima » Fri Feb 07, 2014 6:14 pm

Sorry for this intervention but I have the same problem and I try to upgrade to 4.2.4 from the site web http://www.dynare.org/download/dynare-stable but I did not find this version can you guide me please? thank you very much
selima
 
Posts: 46
Joined: Thu Jan 10, 2013 5:13 pm

Re: Help! Error when estimating a dsge model

Postby jpfeifer » Fri Feb 07, 2014 6:50 pm

Always use the most recent stable version, which would be 4.4.1.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 4 guests