# Help about ramsey policy

**URL:** <https://forum.dynare.org/t/help-about-ramsey-policy/1619>\
**Category:** Optimal Policy\
**Created:** [24 August 2010 15:23 UTC](https://forum.dynare.org/t/help-about-ramsey-policy/1619 "2010-08-24T15:23:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeanPaul](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@JeanPaul](https://forum.dynare.org/u/JeanPaul)\
**Post date:** [24 August 2010 15:23 UTC](https://forum.dynare.org/t/help-about-ramsey-policy/1619/1 "2010-08-24T15:23:09Z")

</div>

Hello all,

I’ve been running a ramsey policy program where the planner objective is a quadratic loss function of the central bank. The aim is to collect the pairs of variances of inflation and output for each value of the policy’s preference parameter (lambda) in order to draw the taylor efficience curve.  
The program run, but what seems weird is that whenever I change the value of the policy preference in the planner objective function (lambda lies from 0:0.5:1) I still get the same values for the inflation and output variances and the same reaction function (optimal policy).  
Secondly, when I tried to run the model with lambda=10.00, the program run and give the same results. which possible value the parameter lambda does lie according to my planner objective function?

What can I do to get variances and the policy function which change to each value of lambda.  
I’m using dynare 4.1.  
thanks for your help !

Here is my code :

close all  
%----------------------------------------------------------------  
% 1. Defining variables  
%----------------------------------------------------------------

var x inflation R;

varexo eps\_x eps\_infl eps\_R;

parameters beta lambda delta alpha phi kappa rho\_infl rho\_x;  
% sigma\_eps\_x sigma\_eps\_infl sigma\_eps\_R;

%----------------------------------------------------------------  
% 2. Calibration  
%----------------------------------------------------------------

beta = 0.99;  
delta = 0.492;  
alpha = 0.60;  
phi = 0.019;  
kappa = 0.021;  
rho\_infl = 1.519;  
rho\_x = 0.633;  
%sigma\_eps\_x = sqrt(0.21);  
%sigma\_eps\_infl = sqrt(1.16);  
%sigma\_eps\_R = sqrt(0.24);  
lambda = 0.50;

%----------------------------------------------------------------  
% 3. Model  
%----------------------------------------------------------------

model (linear);  
x = (1-delta)_x(-1)+ (1-delta)x(+1)-phi(R-inflation(+1))+eps\_x;  
inflation = (1-alpha)inflation(-1)+ alphainflation(+1)+kappa_x+eps\_infl;  
R = rho\_infl_inflation+rho\_x_x+eps\_R;  
end;

%----------------------------------------------------------------  
% 4. Defining chocs  
%----------------------------------------------------------------

shocks;

var eps\_x; stderr 0.366;  
var eps\_infl; stderr 0.384;  
var eps\_R; stderr 5.814;  
end;

planner\_objective (1-lambda)_inflation^2 + lambda_x^2;

ramsey\_policy(planner\_discount=0.99);

---

<div class="post-metadata">

**Author:** ![AssiaEzzeroug](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/b19c9b/32.png) [@AssiaEzzeroug](https://forum.dynare.org/u/AssiaEzzeroug)\
**Post date:** [25 August 2010 11:37 UTC](https://forum.dynare.org/t/help-about-ramsey-policy/1619/2 "2010-08-25T11:37:03Z")

</div>

Hi

you didn’t comment out the interest rate rule. I tried to run the ramsey with different values for lambda (0.5, 0.7)and then get different results. The variances and decision rule are reported in output (respectively in “theoritical moments” and "policy and transition functions sections)

Best

---

<div class="post-metadata">

**Author:** ![JeanPaul](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@JeanPaul](https://forum.dynare.org/u/JeanPaul)\
**Post date:** [25 August 2010 17:48 UTC](https://forum.dynare.org/t/help-about-ramsey-policy/1619/3 "2010-08-25T17:48:50Z")

</div>

Hi,

tks for your help. but how can I do to comment out the interest rate rule? Do I have to remove it from the model equations or set it with backward variables of inflation and output, plus all shocks.  
Also, the discount factor in OSR is it 0.99 or 0.95. If it is 0.95 what can I do if I want to perform OSR with beta=0.99.  
All the best,

---

<div class="post-metadata">

**Author:** ![MichelJuillard](https://forum.dynare.org/user_avatar/forum.dynare.org/micheljuillard/32/5318_2.png) [@MichelJuillard](https://forum.dynare.org/u/MichelJuillard)\
**Post date:** [25 August 2010 19:50 UTC](https://forum.dynare.org/t/help-about-ramsey-policy/1619/4 "2010-08-25T19:50:11Z")

</div>

1. When using ramsey\_policy, you should not write the equation setting interest rate in the model block. It is the optimization procedure that determines its form. It is the only case where a model block should have less equations than endogenous variables.
2. Currently OSR minimizes the weighted sum of variances. This objective function is consistent with a discount factor tending towards 1.0

Best

Michel
