Debian Codegraph @

tests/deterministic_simulations/pfwee_multiple_shocks.mod

raw
1 // Test case with several exogenous variables (regression test for #1883)
2
3 var c k;
4 varexo x y;
5 parameters alph gam delt bet aa;
6
7 alph=0.5;
8 gam=0.5;
9 delt=0.02;
10 bet=0.05;
11 aa=0.5;
12
13 model;
14 c + k - aa*x*k(-1)^alph - (1-delt)*k(-1) +y;
15 c^(-gam) - (1+bet)^(-1)*(aa*alph*x(+1)*k^(alph-1) + 1 - delt)*c(+1)^(-gam);
16 end;
17
18 initval;
19 y=0;
20 x = 1;
21 k = ((delt+bet)/(1.0*aa*alph))^(1/(alph-1));
22 c = aa*k^alph-delt*k;
23 end;
24
25 steady;
26
27 check;
28
29 shocks(learnt_in=2);
30 var x;
31 periods 2:3;
32 values 1.2;
33 end;
34
35 perfect_foresight_with_expectation_errors_setup(periods = 7);
36 perfect_foresight_with_expectation_errors_solver;
37
38 rplot c;