Debian Codegraph @

tests/deterministic_simulations/ramst.mod

raw
1 var c k;
2 varexo x;
3
4 parameters alph gam delt bet aa;
5 alph=0.5;
6 gam=0.5;
7 delt=0.02;
8 bet=0.05;
9 aa=0.5;
10
11
12 model;
13 c + k - aa*x*k(-1)^alph - (1-delt)*k(-1);
14 c^(-gam) - (1+bet)^(-1)*(aa*alph*x(+1)*k^(alph-1) + 1 - delt)*c(+1)^(-gam);
15 end;
16
17 initval;
18 x = 1;
19 k = ((delt+bet)/(1.0*aa*alph))^(1/(alph-1));
20 c = aa*k^alph-delt*k;
21 end;
22
23 steady;
24
25 check;
26
27 shocks;
28 var x;
29 periods 1;
30 values 1.2;
31 end;
32
33 perfect_foresight_setup(periods=200);
34 perfect_foresight_solver;
35
36 rplot c;
37 rplot k;