Debian Codegraph @

tests/deterministic_simulations/ramst_vec.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 a=[1.2; 1.1];
28
29 shocks;
30 var x;
31 periods 1:2;
32 values (a);
33 end;
34
35 perfect_foresight_setup(periods=200);
36 perfect_foresight_solver;
37
38 rplot c;
39 rplot k;