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.

ramsey_policy

Postby fuyangzhao » Thu Oct 27, 2016 4:32 pm

Dear Professor Jpfeifer,

I'm learning how to compute the optimal policies with Dynare. Based on Liu, et.al (2013), I added
Code: Select all
ramsey_policy;
planner_objective(Ch);
ramsey_model(planner_discount=0.98);

in their mod file. I let the planner's objective be maximizing the discounted sum of log(Ch/Chss), which is expressed by Ch since their model is log-linearized.
But it reported that
Error: File: lwz_model.m Line: 599 Column: 30
The expression to the left of the equals sign is not a valid target for an assignment.

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

It there anything wrong?
lwz_model.mod
(9.2 KiB) Downloaded 94 times
fuyangzhao
 
Posts: 48
Joined: Thu Dec 10, 2015 1:20 pm

Re: ramsey_policy

Postby jpfeifer » Thu Oct 27, 2016 7:29 pm

You are using the
Code: Select all
ramsey_model

command that was only introduced after Dynare 4.4.3. Therefore, you need to use the unstable version if you want to use it.
------------
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: ramsey_policy

Postby fuyangzhao » Fri Oct 28, 2016 1:43 am

jpfeifer wrote:You are using the
Code: Select all
ramsey_model

command that was only introduced after Dynare 4.4.3. Therefore, you need to use the unstable version if you want to use it.

And you Professor!

I change the lines into
Code: Select all
ramsey_policy(planner_discount=0.98,order=1);
planner_objective(Ch);

And it reports that
Blanchard Kahn conditions are not satisfied: no stable equilibrium
Is it the planner's objective that leads to the problem?

And another problem is that, when my model is log-linearized, do I need to log-linearize the planner's objective function?
fuyangzhao
 
Posts: 48
Joined: Thu Dec 10, 2015 1:20 pm

Re: ramsey_policy

Postby jpfeifer » Fri Oct 28, 2016 4:37 pm

Your planner objective must be consistent with the variables defined in the model.
Regarding the BK conditions, it is hard to tell what the problem is. If your model setup is correct, the reason most of the time it is that there are multiple steady states for the Ramsey model and a wrong one was found. Providing an instrument and a conditional steady state file often helps in these cases. When doing so, you should use the unstable version as 4.4.3 is buggy with instruments.
------------
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: Google [Bot] and 6 guests