Some problems when estimate dsge.

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.

Some problems when estimate dsge.

Postby jinyou_yin » Tue Mar 26, 2013 10:42 am

Hi,everyone,thank u for your conscern on my problems:
when I run my model code ,such problem as follows occurs. would someone tell me the reason for this question?

Error using lnsrch1 (line 53)
Some element of Newton direction isn't finite. Jacobian maybe singular or there is a problem with
initial values
Error in solve1 (line 127)
[x,f,fvec,check]=lnsrch1(xold,fold,g,p,stpmax,func,j1,j2,varargin{:});

Error in dynare_solve (line 128)
[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 evaluate_steady_state (line 66)
[ys,check] = dynare_solve([M.fname '_static'],...

Error in steady_ (line 54)
[steady_state,params,info] =
evaluate_steady_state(oo_.steady_state,M_,options_,oo_,~options_.steadystate.nocheck);
Error in steady (line 81)
[steady_state,M_.params,info] = steady_(M_,options_,oo_);

Error in sm_2012 (line 285)
steady;

Error in dynare (line 120)
evalin('base',fname) ;

my mod. file is attached and thank you for your time.
Attachments
sm_2012.mod
(3.34 KiB) Downloaded 69 times
jinyou_yin
 
Posts: 11
Joined: Sun Mar 10, 2013 2:17 am

Re: Some problems when estimate dsge.

Postby jpfeifer » Wed Mar 27, 2013 7:08 am

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

before steady you will see that there is a problem with an equation/steady state value:
Residuals of the static equations:

Equation number 1 : 0
Equation number 2 : 0
Equation number 3 : 0
Equation number 4 : 0
Equation number 5 : 0
Equation number 6 : 0
Equation number 7 : 0
Equation number 8 : 0
Equation number 9 : 0
Equation number 10 : 0
Equation number 11 : 1255.9072
Equation number 12 : 0
Equation number 13 : 0
Equation number 14 : 0
Equation number 15 : 0
Equation number 16 : 0
Equation number 17 : 0
Equation number 18 : 0
------------
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: Some problems when estimate dsge.

Postby jinyou_yin » Wed Mar 27, 2013 10:34 am

To jpfeifer:
Thank u so much.You have helped me for several times,thank you sincerely!
jinyou_yin
 
Posts: 11
Joined: Sun Mar 10, 2013 2:17 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests