can't compute the steady state in non-linear 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.

can't compute the steady state in non-linear model

Postby mharding » Mon Mar 16, 2015 2:51 pm

Hi, I am trying to replicate a paper by Christensen and Dib (2008) but as opposed to their log-linear formulation, I want to work with the non-linear model. I computed the steady state with pen and paper but my code fails to compute it ("Error using print_info (line 72) The steadystate file did not compute the steady state"). I don't know if this necessarily means that there is a mistake in the pen-paper calculations, or if this might also be ralated to the initial values (e.g. of the shocks).

I believe there is also a problem with equation 9 of the code (eqs. (A.9) and (A.10) in the paper attached). I'm not sure how to deal with the infinite sum in the code.
Attachments
Christensen, Dib (2008).pdf
(1.89 MiB) Downloaded 110 times
CD08_nonlinear_ss1.mod
(5.46 KiB) Downloaded 57 times
mharding
 
Posts: 18
Joined: Mon Mar 16, 2015 2:18 pm

Re: can't compute the steady state in non-linear model

Postby jpfeifer » Wed Mar 18, 2015 8:24 pm

For the infinite sum, you need to find a recursive representation. See the NK_baseline.mod and its included references for an example.

You most important mistake with the steady state is that you enter the steady state for the variable in levels, but due to your exp() substitution, the model variables are in logs. Start by first making the model without the exp() run and only then go to loglevels.
------------
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: can't compute the steady state in non-linear model

Postby mharding » Fri Mar 20, 2015 8:10 pm

Dear Johannes,

thanks a lot! I modified the code to express the model in levels, and also formulated the infinite sum recursively as in NK_baseline.mod. Now there are way less equations with positive residuals. However, I still fail to compute the steady state. Do you have any advice on how to proceed with the equations that have positive residuals? I have double-checked the model several times and can't find the mistake.

Thank you!
Attachments
CD08_nonlinear_ss0.mod
(6.13 KiB) Downloaded 71 times
mharding
 
Posts: 18
Joined: Mon Mar 16, 2015 2:18 pm


Return to Dynare help

Who is online

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