Internalizing steady state file

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.

Internalizing steady state file

Postby msaysette » Sun Jan 08, 2017 3:53 pm

Hi,

I am trying to add small open economy effects on the Gertler and Karadi 2011 model of unconventional policy.

I am still new to Dynare and have been working with the replication files from macromodelbase.com.

I have tried adding the SOE effects in the current file structure, but steady state is not computed and I am having a hard time troubleshooting since I am not 100% sure what happens in the external files. Error message:
Error using print_info (line 55)
The steadystate file did not compute the steady state

Error in check (line 76)
print_info(info, options.noprint);

Error in NK_GK11_rep (line 401)
oo_.dr.eigval = check(M_,options_,oo_);

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


Hence, I would like help to getting Dynare to calculate the steady state internally i.e. from inside Dynare using no external files (just the .mod). Or, alternatively, help on getting the attached SOE codes right. If I just copy the steady state results from the original replication files as initial values Dynare cannot find steady state. Any suggestions on how to proceed?

Attached are my attempt to incorporate SOE in the current file structure - indented equations in the files are added by me.

Thanks

MS
Attachments
f_mom.m
(1.13 KiB) Downloaded 43 times
NK_GK11_rep.mod
(9.19 KiB) Downloaded 46 times
f_KL.m
(1.28 KiB) Downloaded 38 times
f_simul.m
(3.51 KiB) Downloaded 38 times
NK_GK11_rep_steadystate.m
(5.86 KiB) Downloaded 45 times
msaysette
 
Posts: 2
Joined: Sun Dec 04, 2016 11:14 am

Re: Internalizing steady state file

Postby jpfeifer » Sun Jan 08, 2017 9:23 pm

You need to keep the structure with an external steady state file. But you should move the
Code: Select all
steady

command before the first
Code: Select all
check

to get useful debugging information.
------------
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: Internalizing steady state file

Postby msaysette » Tue Jan 10, 2017 9:48 am

Okay, I will keep the current file structure. Could you perhaps help me understand the reason for this file structure?

I assume that this means Dynare cannot calculate the steady state and that I have to input equations for ss in the steadystate file for my extensions of the model. How should the remaining files be updated when I do this?

Thanks. Appreciate the help.
msaysette
 
Posts: 2
Joined: Sun Dec 04, 2016 11:14 am

Re: Internalizing steady state file

Postby jpfeifer » Tue Jan 10, 2017 7:55 pm

The Gertler/Karadi model uses a numerical solver to compute the steady state. That's why you shoud keep the steady state file. What you need to do is adjust the equations in the steady state file to provide the steady state for your modified model, i.e. change the model-specific part. Focus on the equations where Dynare shows you that residuals are not 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 5 guests