Page 1 of 1

Adding shocks and Steady state

PostPosted: Wed Jun 11, 2014 1:54 pm
by miga_7
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

Re: Adding shocks and Steady state

PostPosted: Wed Jun 11, 2014 2:46 pm
by jpfeifer
You call a script steady_state, but did not provide it. Without it, I cannot run your code.

Re: Adding shocks and Steady state

PostPosted: Wed Jun 11, 2014 2:55 pm
by miga_7
Ah, yes, sorry. It's attached now.

Re: Adding shocks and Steady state

PostPosted: Wed Jun 11, 2014 2:57 pm
by miga_7
Here is the dynare code without the aforementioned extra shock, and this runs without a problem.

Re: Adding shocks and Steady state

PostPosted: Wed Jun 11, 2014 3:10 pm
by jpfeifer
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.

Re: Adding shocks and Steady state

PostPosted: Wed Jun 11, 2014 3:34 pm
by miga_7
Yes, that works now. Thank you very much!