Schur decomposition failed

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.

Schur decomposition failed

Postby economist » Thu Mar 27, 2014 5:36 pm

Hello,
Im having trouble with the Schur decomposition failing for my code. The steady state is correctly calculated and the residuals of all equations are exactly zero. I can't seem to find the problem. I'm posting the .mod file and the steady state auxiliary file. Any help will be much appreciated.
Thank you!
Attachments
codemarch25GM_steadystate.m
(3.67 KiB) Downloaded 66 times
codemarch25GM.mod
(8.65 KiB) Downloaded 77 times
economist
 
Posts: 7
Joined: Tue Feb 18, 2014 9:55 pm

Re: Schur decomposition failed

Postby kyri82 » Thu Mar 27, 2014 6:07 pm

If I read your results correctly you have negative values at the steady-state. Are you sure this is correct?

K
kyri82
 
Posts: 141
Joined: Thu Feb 10, 2011 6:14 pm
Location: Toulouse - France

Re: Schur decomposition failed

Postby economist » Thu Mar 27, 2014 7:15 pm

Thank you, K.

I don't think that is the issue. Since I'm log linearizing, those steady state values are logs of the variables. I get the same erro message when I linearize and all steady-state values are positive.
economist
 
Posts: 7
Joined: Tue Feb 18, 2014 9:55 pm

Re: Schur decomposition failed

Postby kyri82 » Thu Mar 27, 2014 7:58 pm

You sure about your parametrisation? Some parametre values sometimes give unit roots. Do you solve the steady-state by hand?
kyri82
 
Posts: 141
Joined: Thu Feb 10, 2011 6:14 pm
Location: Toulouse - France

Re: Schur decomposition failed

Postby economist » Thu Mar 27, 2014 8:52 pm

Yes, I believe so. I solve the steady state in closed-form for all variables. Thank you for looking into this.
economist
 
Posts: 7
Joined: Tue Feb 18, 2014 9:55 pm

Re: Schur decomposition failed

Postby kyri82 » Thu Mar 27, 2014 8:59 pm

You know if you do that you can introduce the log-linearised model directly in dynare. Then you express each variable as a log-deviation from the ss and you do not need to worry about the ss anymore.
kyri82
 
Posts: 141
Joined: Thu Feb 10, 2011 6:14 pm
Location: Toulouse - France

Re: Schur decomposition failed

Postby jpfeifer » Fri Mar 28, 2014 10:03 am

From an experimental version of model_diagnostics:
MODEL_DIAGNOSTICS: The Jacobian of the static model contains Inf or NaN. The problem arises from:

MODEL_DIAGNOSTICS: Derivative of Equation 18 with respect to Variable BD (initial value of BD: 0)
MODEL_DIAGNOSTICS: Derivative of Equation 19 with respect to Variable BF (initial value of BF: 0)

MODEL_DIAGNOSTICS: The problem most often occurs, because a variable with
MODEL_DIAGNOSTICS: exponent smaller than 1 has been initialized to 0. Taking the derivative
MODEL_DIAGNOSTICS: and evaluating it at the steady state then results in a division by 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


Return to Dynare help

Who is online

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