Debian Codegraph @

tests/optimal_policy/Ramsey/ramsey_ex_wrong_ss_file_xfail.mod

raw
1 /* Mod file tests whether the Ramsey command correctly filters out an incorrect steady state
2 * The example is taken from Juillard, Michel (2011): User manual for optimal policy package,
3 * MONFISPOL FP7 project SSH-225149, Deliverable 1.1.2
4 */
5
6
7 var pai, c, n, r, a;
8 varexo u;
9 parameters beta, rho, epsilon, omega, phi, gamma;
10
11 beta=0.99;
12 gamma=3;
13 omega=17;
14 epsilon=8;
15 phi=1;
16 rho=0.95;
17
18 model;
19 a = rho*a(-1)+u;
20 1/c = beta*r/(c(+1)*pai(+1));
21 pai*(pai-1)/c = beta*pai(+1)*(pai(+1)-1)/c(+1)+epsilon*phi*n^(gamma+1)/omega -exp(a)*n*(epsilon-1)/(omega*c);
22 exp(a)*n = c+(omega/2)*(pai-1)^2;
23 end;
24
25 initval;
26 r=1;
27 end;
28
29 steady_state_model;
30 a = 1;
31 pai = beta*r;
32 c = find_c(0.96,pai,beta,epsilon,phi,gamma,omega);
33 n = c+(omega/2)*(pai-1)^2;
34 end;
35
36 shocks;
37 var u; stderr 0.008;
38 end;
39
40 planner_objective(ln(c)-phi*((n^(1+gamma))/(1+gamma)));
41 ramsey_model(planner_discount=0.99,order=1,instruments=(r));
42 stoch_simul(order=1,periods=500);
43 evaluate_planner_objective;