Adding shocks and Steady state

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.

Adding shocks and Steady state

Postby miga_7 » Wed Jun 11, 2014 1:54 pm

Hi,

I have a simple closed economy NK model in dynare that works perfectly. I am trying to expand this code to solve a model that I have myself. One of the expansions to this code is addition of some shocks. As soon as I add these shocks the code deosn't run anymore and gives me the steady state error. This very strange because just to examine what the problem is, I only added the shock process, and didn't start using it in the model, and to check I have even givn it the same value for rho and sigma as another shock. So effectively the shock that I have added is exactly the same as another shock that already works. But dynare gives error.

I have attached both the main matlab and dynare files (initial values are linked from the matlab file so it's easier to run it from there).

The new shock I've added is eps_l.

I have both dynare 4.3.3 and 4.4 and with both I get this error. I have tried with and without giving options to steady, steady(solve_algo=4,maxit=10000).

I would be so grateful if someone could give me a clue as what the problem could be.

Thanks
Attachments
main.m
(2 KiB) Downloaded 40 times
nk3.mod
(4.74 KiB) Downloaded 49 times
miga_7
 
Posts: 13
Joined: Fri May 30, 2014 6:23 pm

Re: Adding shocks and Steady state

Postby jpfeifer » Wed Jun 11, 2014 2:46 pm

You call a script steady_state, but did not provide it. Without it, I cannot run your code.
------------
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: Adding shocks and Steady state

Postby miga_7 » Wed Jun 11, 2014 2:55 pm

Ah, yes, sorry. It's attached now.
Attachments
steady_state.m
(1.98 KiB) Downloaded 43 times
miga_7
 
Posts: 13
Joined: Fri May 30, 2014 6:23 pm

Re: Adding shocks and Steady state

Postby miga_7 » Wed Jun 11, 2014 2:57 pm

Here is the dynare code without the aforementioned extra shock, and this runs without a problem.
Attachments
nk2.mod
(4.58 KiB) Downloaded 43 times
miga_7
 
Posts: 13
Joined: Fri May 30, 2014 6:23 pm

Re: Adding shocks and Steady state

Postby jpfeifer » Wed Jun 11, 2014 3:10 pm

There is a bug in solve_algo=4 that suggested convergence for the steady state when I was not yet achieved. If you use
Code: Select all
steady(solve_algo=3,maxit=100000);

the file nk3 also runs.
------------
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: Adding shocks and Steady state

Postby miga_7 » Wed Jun 11, 2014 3:34 pm

Yes, that works now. Thank you very much!
miga_7
 
Posts: 13
Joined: Fri May 30, 2014 6:23 pm


Return to Dynare help

Who is online

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