Problems with Ramsey policy

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.

Problems with Ramsey policy

Postby DrB » Thu Jul 03, 2014 2:56 pm

Dear experts

I want to characterize equilibrium dynamics under Ramsey optimal monetary policy (in a 2-sector model). The model seems to work fine when I use stoch_simul, but the ramsey_policy routine crashes.

First it throws out warnings like this:

Code: Select all
Warning: Rank deficient, rank = 1, tol =  2.379566e-15.
> In dyn_ramsey_static>dyn_ramsey_static_1 at 148
  In dyn_ramsey_static>@(x)dyn_ramsey_static_1(x,M,options_,oo) at 39
  In csolve at 60
  In dyn_ramsey_static at 51
  In evaluate_steady_state at 55
  In resol at 108
  In stoch_simul at 76
  In ramsey_policy at 25
  In oilpol at 654
  In dynare at 120


Then I get the following error:

Code: Select all
Error using print_info (line 63)
The steady state contains NaN or Inf

Error in stoch_simul (line 81)
    print_info(info, options_.noprint);

Error in ramsey_policy (line 25)
info = stoch_simul(var_list);

Error in oilpol (line 654)
ramsey_policy(var_list_);

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


Can someone please tell me what the problem is? mod- and steady state files are attached (note that one has to select either standard simulation or ramsey at the top of the mod-file).
Attachments
oilpol.mod
(8.92 KiB) Downloaded 108 times
oilpol_steadystate.m
(6.78 KiB) Downloaded 93 times
DrB
 
Posts: 4
Joined: Fri Aug 23, 2013 8:51 am

Re: Problems with Ramsey policy

Postby jpfeifer » Fri Jul 04, 2014 8:46 am

Your steady state file is not built for Ramsey with instruments. As the manual says, the steady state file must be conditional on the instruments. If rF is the instrument, the steady state file must take this value as given and provide the steady state for all other variables given the parameters and the value for rF. What your file does is overwrite and thus ignore the value for the instrument rF because you set it in steady state as a function of the deep parameters.
------------
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: Problems with Ramsey policy

Postby DrB » Mon Jul 07, 2014 8:46 pm

Dear Johannes,

First of all, thank you for the invaluable effort you put down to help all of us here on the forum.

Regarding the instrument and steady state: Since the steady state nominal interest rate is given by RF = inflation/betta, I changed the instrument to gross inflation (PIcF) for convenience. Now, as I understand your comment, I have to take a candidate PIcF as input in the steady state file (it should be part of the input vector ys), and then solve for the rest of the (private economy) variables given that candidate. A colleague helped me to set that up (see line 32-38 in the new steady state file below).

However, I'm still not able to run the Ramsey command. I still get the warnings about rank deficiency followed by the error. I'm sure there is a simple solution to my problem (sorry for my blindness ...), and would really appreciate any help.

Updated files are attached.

Best, Drago
Attachments
oilpol_steadystate.m
(6.91 KiB) Downloaded 117 times
oilpol.mod
(7.68 KiB) Downloaded 117 times
DrB
 
Posts: 4
Joined: Fri Aug 23, 2013 8:51 am

Re: Problems with Ramsey policy

Postby jpfeifer » Fri Jul 18, 2014 12:39 pm

Sorry for the long silence, but the issue turned out to be rather involved. I think I have fixed it now. Could you please replace the dynare\matlab files with the attached ones and try it once more. I hope Dynare 4.4.3 will contain a fix.
Attachments
dyn_ramsey_static.m
(5.73 KiB) Downloaded 108 times
evaluate_steady_state.m
(12.56 KiB) Downloaded 114 times
print_info.m
(7.51 KiB) Downloaded 94 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: Problems with Ramsey policy

Postby mroth » Wed Dec 03, 2014 1:12 pm

I obtain similar error/warning messages. Has the problem been fixed in the recent version of dynare?
mroth
 
Posts: 1
Joined: Wed Dec 03, 2014 1:07 pm

Re: Problems with Ramsey policy

Postby jpfeifer » Sat Dec 06, 2014 3:56 pm

In the unstable version, it should be resolved.
------------
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: No registered users and 11 guests