Debian Codegraph @

tests/deterministic_simulations/linear_state_space_arma.mod

raw
1 %mod-file triggering the sim1_linear.m solver;
2 %The exogenous arma processes test whether the Jacobian at the
3 %deterministic steady state is correctly computed
4 var x
5 y
6 z;
7
8 varexo u
9 v;
10
11 parameters a1 a2 a3 a4
12 b1 b2 b3
13 c1;
14
15 a1 = .50;
16 a2 = .00;
17 a3 = .70;
18 a4 = .40;
19 b1 = .90;
20 b2 = .00;
21 b3 = .80;
22 c1 = .95;
23
24
25 model(linear);
26 y = a1*x(-1) + a2*x(+1) + a3*z + a4*y(-1);
27 z = b1*z(-1) + b2*z(+1) + b3*x + u;
28 x = c1*x(-1) + v +v(-1)+v(+1);
29 end;
30
31 initval;
32 y=-1;
33 x=-1;
34 z=-1;
35 end;
36
37 endval;
38 y=0;
39 x=0;
40 z=0;
41 end;
42 steady;
43 perfect_foresight_setup(periods=1000);
44 perfect_foresight_solver(stack_solve_algo=0);