questions about Ramsey optimal 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.

questions about Ramsey optimal policy

Postby sahar.bashiri01 » Sun Aug 30, 2015 8:30 am

Dear all,

I have some questions about Ramsey optimal policy.

My model is a standard model with habit formation consumption. It works fine if I put Taylor rule as the monetary policy rule. But there's a problem when I try to get the results under Ramsey optimal policy. The planner objective is a function of consumption expenditure and labour hours which I wrote it s follows:

planner_objective log(c-h*c)-psi*(((wl^(lambdaw*(1+v)/(1-lambdaw)))*(w_star^(lambdaw*(1+v)/(1-lambdaw)))*(l_star^(1+v)))/(1+v));
ramsey_policy(planner_discount=0.9976,order = 1,instruments=(r));
eliminare_lagrange_multipliers;

When I try to run the code, Dynare returns the following error message:

Error using dynare_solve (line 60)
An element of the Jacobian is not finite or NaN
Error in evaluate_steady_state (line 66)
[ys,check] = dynare_solve([M.fname '_static'],...
Error in steady_ (line 54)
[steady_state,params,info] =
evaluate_steady_state(oo_.steady_state,M_,options_,oo_,~options_.steadystate.nocheck);
Error in steady (line 81)
[steady_state,M_.params,info] = steady_(M_,options_,oo_);
Error in Ikeda_main10_ramsey (line 822)
steady;
Error in dynare (line 180)
evalin('base',fname) ;

I need help to solve the errors. Any help would be much appreciated!

Best Regards,
Sahar Bashiri
sahar.bashiri01
 
Posts: 3
Joined: Tue Feb 24, 2015 5:00 pm

Re: questions about Ramsey optimal policy

Postby jpfeifer » Sun Aug 30, 2015 11:19 am

You are most probably going to need a steady state file for this exercise that provides the analytical steady state values conditional on the value of the instrument.
------------
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: questions about Ramsey optimal policy

Postby sahar.bashiri01 » Sun Aug 30, 2015 5:35 pm

Dear Professor,

Thank you very much for your help in advance.

I check the steady state values. The code works fine after eliminating some shocks. I have another questions, too.
Is writing the planner objective with habit persistence in consumption as follows correct?

planner_objective log(c-h*c)-psi*(((wl^(lambdaw*(1+v)/(1-lambdaw)))*(w_star^(lambdaw*(1+v)/(1-lambdaw)))*(l_star^(1+v)))/(1+v));

Best regards,
Sahar Bashiri
sahar.bashiri01
 
Posts: 3
Joined: Tue Feb 24, 2015 5:00 pm

Re: questions about Ramsey optimal policy

Postby jpfeifer » Mon Aug 31, 2015 8:17 am

No, you are missing the lagged consumption term. To deal with this, define a new variable
Code: Select all
c_lag=c(-1)

and define the part of the planner objective as
Code: Select all
planner_objective log(c-h*c_lag)
------------
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: questions about Ramsey optimal policy

Postby sahar.bashiri01 » Mon Aug 31, 2015 11:15 am

I regard your reply for my questions. I would like to express my deepest appreciation for your help. .


Best regards,
Sahar Bashiri
sahar.bashiri01
 
Posts: 3
Joined: Tue Feb 24, 2015 5:00 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests