Debian Codegraph @

tests/moments/example1_theoretical_simulated.mod

raw
1 // Test against regression in ordering filtered autocorrelations (were transposed)
2 @#include "example1_common.inc"
3
4 // Parameter values
5 alpha = 0.36;
6 rho = 0.95;
7 tau = 0.025;
8 beta = 0.99;
9 delta = 0.025;
10 psi = 0;
11 theta = 2.95;
12
13 phi = 0.1;
14
15 shocks;
16 var e; stderr 0.009;
17 var u; stderr 0.009;
18 var e, u = phi*0.009*0.009;
19 end;
20
21 steady(solve_algo=4,maxit=1000);
22
23 stoch_simul(order=1,nofunctions,irf=0,bandpass_filter) y c;
24 out1=oo_.autocorr{1};
25
26 stoch_simul(order=1,nofunctions,irf=0,periods=10000000,bandpass_filter) y c ;
27 out2=oo_.autocorr{1};
28 if max(max(abs(out1-out2)))>0.03
29 error('The autocorrelations are wrong.')
30 end
31