Debian Codegraph @

tests/external_function/benchmark.mod

raw
1 /* This file has no external function, but is used as a benchmark against with
2 the other tests are compared.
3 It is almost the same as example1.mod, except that lagged capital is squared in the
4 law of motion of capital (in order to have a non-zero Hessian of the
5 external function) */
6 var y, c, k, a, h, b;
7 varexo e, u;
8
9 parameters beta, rho, alpha, delta, theta, psi, tau;
10
11 alpha = 0.36;
12 rho = 0.95;
13 tau = 0.025;
14 beta = 0.99;
15 delta = 0.025;
16 psi = 0;
17 theta = 2.95;
18
19 phi = 0.1;
20
21 model;
22 c*theta*h^(1+psi)=(1-alpha)*y;
23 k = beta*(((exp(b)*c)/(exp(b(+1))*c(+1)))
24 *(exp(b(+1))*alpha*y(+1)+(1-delta)*k));
25 y = exp(a)*(k(-1)^alpha)*(h^(1-alpha));
26 k = exp(b)*(y-c)+(1-delta)*k(-1)^2;
27 a = rho*a(-1)+tau*b(-1) + e;
28 b = tau*a(-1)+rho*b(-1) + u;
29 end;
30
31 initval;
32 y = 1.08068253095672;
33 c = 0.80359242014163;
34 h = 0.29175631001732;
35 k = 11.08360443260358;
36 a = 0;
37 b = 0;
38 e = 0;
39 u = 0;
40 end;
41
42 shocks;
43 var e; stderr 0.009;
44 var u; stderr 0.009;
45 var e, u = phi*0.009*0.009;
46 end;
47
48 stoch_simul;