Debian Codegraph @

tests/identification/ident_unit_root/ident_unit_root.mod

raw
1 % Tests Identification command with ML and unit roots/diffuse filter option
2 % Created by Johannes Pfeifer (@JohannesPfeifer, [email protected])
3 % =========================================================================
4 % Copyright © 2015-2020 Dynare Team
5 %
6 % This file is part of Dynare.
7 %
8 % Dynare is free software: you can redistribute it and/or modify
9 % it under the terms of the GNU General Public License as published by
10 % the Free Software Foundation, either version 3 of the License, or
11 % (at your option) any later version.
12 %
13 % Dynare is distributed in the hope that it will be useful,
14 % but WITHOUT ANY WARRANTY; without even the implied warranty of
15 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 % GNU General Public License for more details.
17 %
18 % You should have received a copy of the GNU General Public License
19 % along with Dynare. If not, see <https://www.gnu.org/licenses/>.
20 % =========================================================================
21 var y delta_y x z;
22
23 varexo eps_x eps_z;
24
25 parameters rho sigma_z sigma_x;
26
27 // set parameter values
28 sigma_z=0.001;
29 sigma_x=0.01;
30 rho=0.9;
31
32 model;
33 z=rho*z(-1)+sigma_z*eps_z;
34 x=x(-1)+sigma_x*eps_x;
35 y=x+z;
36 delta_y=y-y(-1);
37 end;
38
39 steady_state_model;
40 x=0;
41 z=0;
42 y=0;
43 delta_y=0;
44 end;
45
46 //set shock variances
47 shocks;
48 var eps_z=1;
49 var eps_x=1;
50 end;
51
52 steady;
53 check;
54 varobs delta_y;
55 stoch_simul(order=1,irf=0);
56
57
58 estimated_params;
59 rho, 0.9;
60 sigma_z, 0.01;
61 sigma_x, 0.01;
62 end;
63 identification(diffuse_filter,advanced=1,prior_trunc=0);