Commit 0e0cdc50 authored by sebastien's avatar sebastien
Browse files

trunk: added ramsey policy example to testsuite


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2788 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 14eea654
......@@ -10,6 +10,7 @@ OCTAVE_MODS = \
ramst_a.mod \
example1.mod \
t_sgu_ex1.mod \
ramsey.mod \
arima/mod1.mod \
arima/mod1a.mod \
arima/mod2.mod \
......
// Example of Ramsey policy computation
var y inflation r;
varexo y_ inf_;
parameters delta sigma alpha kappa gammarr gammax0 gammac0 rbar lambda1 lambda2;
delta = 0.44;
kappa = 0.18;
alpha = 0.48;
sigma = -0.06;
lambda1 = 0.5;
lambda2 = 0.1;
model(linear);
y = delta * y(-1) + (1-delta) * y(+1) + sigma *(r - inflation(+1)) + y_;
inflation = alpha * inflation(-1) + (1-alpha) * inflation(+1) + kappa*y + inf_;
end;
shocks;
var y_;
stderr 0.63;
var inf_;
stderr 0.4;
end;
planner_objective inflation^2 + lambda1*y^2 + lambda2*r^2;
ramsey_policy(planner_discount=0.95, order = 1);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment