Dynare 3 vs 4.0.3 - Error in steady states

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.

Dynare 3 vs 4.0.3 - Error in steady states

Postby javiersan » Sat May 01, 2010 7:20 pm

Hi

I have a model that runs well in Dynare 3 but when I run it on Dynare 4.0.3 I get the following error message:

??? Error using ==> steady_ at 51
The seadystate values returned by EuroArea_steadystate.m don't solve the static
model!

Error in ==> steady at 52
steady_;

Error in ==> EuroArea at 146
steady;

Error in ==> dynare at 102
evalin('base',fname) ;


How can this be?

Thanks for your help

Javier
javiersan
 
Posts: 4
Joined: Sat May 01, 2010 7:16 pm

Re: Dynare 3 vs 4.0.3 - Error in steady states

Postby jpfeifer » Sun May 02, 2010 7:54 am

Hi Javier,
to get an answer you should post your .mod- and steady state-file.
------------
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: Dynare 3 vs 4.0.3 - Error in steady states

Postby javiersan » Mon May 03, 2010 7:12 pm

Sure, here they are.

This is a simple model of interactions between Euro Area and a small country. Monetary policy is set based on Euro Area wide parameters and fiscal policy is set at the small country level. I have set the steady state values at zero which runs ok in Dynare 3 but crashes in Dynare 4. Any help would be appreciated.

Regards,

Javier
Attachments
esp_data.m
(523 Bytes) Downloaded 131 times
TwoBlocks_base_steadystate.m
(392 Bytes) Downloaded 148 times
TwoBlocks_base.mod
(4.99 KiB) Downloaded 95 times
javiersan
 
Posts: 4
Joined: Sat May 01, 2010 7:16 pm

Re: Dynare 3 vs 4.0.3 - Error in steady states

Postby javiersan » Mon May 03, 2010 7:13 pm

and the data
Attachments
esp_data.xls
(37.85 KiB) Downloaded 123 times
javiersan
 
Posts: 4
Joined: Sat May 01, 2010 7:16 pm

Re: Dynare 3 vs 4.0.3 - Error in steady states

Postby jpfeifer » Tue May 04, 2010 12:44 pm

I have never worked with Dynare 3. However, for Dynare 4, your steady state file is ill-suited as it does not supply the correct steady state but rather starting values. In this case, Dynare takes these values as steady state values and does not try to solve further. Moreover, the required lines of code are missing in the steady state file to enable Dynare to run with it (see http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=1834&p=5055&hilit=steadystate.m#p5055).
You now have two possibilities:

1. You delete the steady state file and set
Code: Select all
steady;

to
Code: Select all
steady(solve_algo = 3);

in the mod-file. Dynare will then find the steady state by using Chris Sims’ solver, which gives you an approximately correct steady state (some rounding error is involved)

2. You use the attached steady state file where I added the required lines at the beginning and the end of the code and added the correct exact steady state values.
Attachments
TwoBlocks_base_steadystate.m
Corrected Steady state file
(991 Bytes) Downloaded 105 times
------------
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: Dynare 3 vs 4.0.3 - Error in steady states

Postby javiersan » Tue May 04, 2010 9:48 pm

Thank you very much for your help Johannes. The modified _steadystate.m file solves the problem.

Best regards,

Javier
javiersan
 
Posts: 4
Joined: Sat May 01, 2010 7:16 pm


Return to Dynare help

Who is online

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