Error in Estimation Log-Linearized 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.

Error in Estimation Log-Linearized Model

Postby cherry87 » Thu Jun 02, 2011 1:44 pm

Hi. I am trying to replicate a model by Rabanal (2005) which is written in log-linearized form, however, I get into this error:

??? Error using ==> lnsrch1 at 53
Some element of Newton direction isn't finite. Jacobian maybe singular or there is a
problem with initial values

Error in ==> solve1 at 127
[x,f,fvec,check]=lnsrch1(xold,fold,g,p,stpmax,func,j1,j2,varargin{:});

Error in ==> dynare_solve at 124
[x,info]=solve1(func,x,j1(r(i):r(i+1)-1),j2(r(i):r(i+1)-1),jacobian_flag,
bad_cond_flag, varargin{:});

Error in ==> steady_ at 120
[oo_.steady_state,check] = dynare_solve([M_.fname '_static'],...

Error in ==> steady at 54
steady_;

Error in ==> modelopen at 310
steady;

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

I did not specify steady state values as they are zero automatically; what could be the issue? Attached is the Mod-file.
Thank you for your attention.
Attachments
modelopen.mod
(3.72 KiB) Downloaded 95 times
cherry87
 
Posts: 2
Joined: Thu Jun 02, 2011 1:37 pm

Re: Error in Estimation Log-Linearized Model

Postby jpfeifer » Thu Jun 02, 2011 5:48 pm

If you put
Code: Select all
resid(1);

before steady; you will see that the problem is equation 27:
A=g+A(-1)+ea;

Its steady state is obviously g. Hence, there is still an issue with the model.
------------
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

Re: Error in Estimation Log-Linearized Model

Postby cherry87 » Mon Jun 06, 2011 10:29 am

Thank you so much for your help! I managed to work things out with my model.
cherry87
 
Posts: 2
Joined: Thu Jun 02, 2011 1:37 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 12 guests