use ramsey to solve for optimal transition path

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.

use ramsey to solve for optimal transition path

Postby anitazhang » Thu Oct 31, 2013 5:44 pm

Dear all,

Thank you for help in advance! I really appreciate it.

I'd like to use ramsey function to solve for an optimal transition path from one steady state to another. Specifically, I use the RBC model provided by dynare, 'ramst.mod', extended to allow for a tax parameter "x". The after-tax production function is 'aa*x*k(-1)^alph'. I also assume there is a quadratic tax adjustment cost: 'psi*(x-x(-1))^2'.

I want to solve for an optimal path for x from x=0.8 to 0.9. This requires x should not be higher than 0.9. This policy constraint is imposed by assuming a very large resource cost if x>0.9: '(x>0.9)*10000'.

However, when I use 'ramsey' to solve for the problem. Dynare gives the error:
Code: Select all
Reference to non-existent field 'maximum_exo_lag'.

Error in check_model (line 22)
xlen = M_.maximum_exo_lag+M_.maximum_exo_lead + 1;

Error in stoch_simul (line 63)
check_model;

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

Error in ramsey_transition (line 121)
ramsey_policy(var_list_);

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


I attached the codes. can any one please take a look and let me know if anything goes wrong.

Thank you for your time in advance.
Attachments
ramsey_transition.mod
(1.88 KiB) Downloaded 100 times
anitazhang
 
Posts: 35
Joined: Sat Oct 05, 2013 12:02 am

Re: use ramsey to solve for optimal transition path

Postby jpfeifer » Fri Nov 01, 2013 8:56 am

You model does not feature any exogenous variables to which the transition could happen. I think that x should be a var_exo.
------------
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: use ramsey to solve for optimal transition path

Postby anitazhang » Wed Nov 06, 2013 3:07 am

Sorry for the confusion. I set 'x' as an endogenous variable because it has to be optimally choosed to maximize the utility. I wonder if it is exogenous, can I still use it as an instrument in the 'ramsey'?
anitazhang
 
Posts: 35
Joined: Sat Oct 05, 2013 12:02 am

Re: use ramsey to solve for optimal transition path

Postby jpfeifer » Wed Nov 06, 2013 7:26 pm

Forget what I said. There was a bug in Dynare 4.3.3. Please try again with tomorrow's unstable version.
------------
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: use ramsey to solve for optimal transition path

Postby anitazhang » Fri Nov 08, 2013 1:38 am

I try with both 2013/11/6's and 2013/11/7's unstable version. Both versions give the following error:

Code: Select all
Error using print_info (line 51)
The Jacobian matrix evaluated at the steady state
contains elements that are not real or are infinite

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

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

Error in ramsey_transition (line 125)
ramsey_policy(var_list_);

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


jpfeifer wrote:Forget what I said. There was a bug in Dynare 4.3.3. Please try again with tomorrow's unstable version.
anitazhang
 
Posts: 35
Joined: Sat Oct 05, 2013 12:02 am

Re: use ramsey to solve for optimal transition path

Postby jpfeifer » Fri Nov 08, 2013 9:24 am

I was referring to the fact that there was a bug triggered by your model. This one has been fixed and you now get a correct error message. Unfortunately, I have no idea, what is causing your model not being able to solve.
------------
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 7 guests