Debian Codegraph @

tests/ecb/panel_var/panel_var_diff_NB_2country.mod

raw
1 // --+ options: json=compute +--
2
3 /* REMARK
4 ** ------
5 **
6 ** You need to have the first line on top of the mod file. The options defined on this line are passed
7 ** to the dynare command (you can add other options, separated by spaces or commas). The option defined
8 ** here is mandatory for the decomposition. It forces Dynare to output another representation of the
9 ** model in JSON file (additionaly to the matlab files) which is used here to manipulate the equations.
10 */
11
12 var
13 U2_Q_YED
14 U2_G_YER
15 U2_STN
16 U2_ESTN
17 U2_EHIC
18 DE_Q_YED
19 DE_G_YER
20 DE_EHIC
21 ;
22
23 varexo
24 res_U2_Q_YED
25 res_U2_G_YER
26 res_U2_STN
27 res_U2_ESTN
28 res_U2_EHIC
29 res_DE_Q_YED
30 res_DE_G_YER
31 res_DE_EHIC
32 ;
33
34 parameters
35 u2_q_yed_ecm_u2_q_yed_L1
36 u2_q_yed_ecm_u2_stn_L1
37 u2_q_yed_u2_g_yer_L1
38 u2_q_yed_u2_stn_L1
39 u2_g_yer_ecm_u2_q_yed_L1
40 u2_g_yer_ecm_u2_stn_L1
41 u2_g_yer_u2_q_yed_L1
42 u2_g_yer_u2_g_yer_L1
43 u2_g_yer_u2_stn_L1
44 u2_stn_ecm_u2_q_yed_L1
45 u2_stn_ecm_u2_stn_L1
46 u2_stn_u2_q_yed_L1
47 u2_stn_u2_g_yer_L1
48 u2_estn_u2_estn_L1
49 u2_ehic_u2_ehic_L1
50
51 de_q_yed_ecm_de_q_yed_L1
52 de_q_yed_ecm_u2_stn_L1
53 de_q_yed_de_g_yer_L1
54 de_q_yed_u2_stn_L1
55 de_g_yer_ecm_de_q_yed_L1
56 de_g_yer_ecm_u2_stn_L1
57 de_g_yer_de_q_yed_L1
58 de_g_yer_de_g_yer_L1
59 de_g_yer_u2_stn_L1
60 de_ehic_de_ehic_L1
61 ;
62
63 u2_q_yed_ecm_u2_q_yed_L1 = -0.82237516589315 ;
64 u2_q_yed_ecm_u2_stn_L1 = -0.323715338568976 ;
65 u2_q_yed_u2_g_yer_L1 = 0.0401361895021084 ;
66 u2_q_yed_u2_stn_L1 = 0.058397703958446 ;
67 u2_g_yer_ecm_u2_q_yed_L1 = 0.0189896046977421 ;
68 u2_g_yer_ecm_u2_stn_L1 = -0.109597659887432 ;
69 u2_g_yer_u2_q_yed_L1 = 0.0037667967632025 ;
70 u2_g_yer_u2_g_yer_L1 = 0.480506381923644 ;
71 u2_g_yer_u2_stn_L1 = -0.0722359286123494 ;
72 u2_stn_ecm_u2_q_yed_L1 = -0.0438500662608356 ;
73 u2_stn_ecm_u2_stn_L1 = -0.153283917138772 ;
74 u2_stn_u2_q_yed_L1 = 0.0328744983772825 ;
75 u2_stn_u2_g_yer_L1 = 0.292121949736756 ;
76 u2_estn_u2_estn_L1 = 1 ;
77 u2_ehic_u2_ehic_L1 = 1 ;
78
79 de_q_yed_ecm_de_q_yed_L1 = -0.822375165893149 ;
80 de_q_yed_ecm_u2_stn_L1 = -0.323715338568977 ;
81 de_q_yed_de_g_yer_L1 = 0.0401361895021082 ;
82 de_q_yed_u2_stn_L1 = 0.0583977039584461 ;
83 de_g_yer_ecm_de_q_yed_L1 = 0.0189896046977422 ;
84 de_g_yer_ecm_u2_stn_L1 = -0.109597659887433 ;
85 de_g_yer_de_q_yed_L1 = 0.00376679676320256;
86 de_g_yer_de_g_yer_L1 = 0.480506381923643 ;
87 de_g_yer_u2_stn_L1 = -0.0722359286123494 ;
88 de_ehic_de_ehic_L1 = 1 ;
89
90
91 model;
92
93 diff(U2_Q_YED) = u2_q_yed_ecm_u2_q_yed_L1 * (U2_Q_YED(-1) - U2_EHIC(-1))
94 + u2_q_yed_ecm_u2_stn_L1 * (U2_STN(-1) - U2_ESTN(-1))
95 + u2_q_yed_u2_g_yer_L1 * diff(U2_G_YER(-1))
96 + u2_q_yed_u2_stn_L1 * diff(U2_STN(-1))
97 + res_U2_Q_YED ;
98
99 diff(U2_G_YER) = u2_g_yer_ecm_u2_q_yed_L1 * (U2_Q_YED(-1) - U2_EHIC(-1))
100 + u2_g_yer_ecm_u2_stn_L1 * (U2_STN(-1) - U2_ESTN(-1))
101 + u2_g_yer_u2_q_yed_L1 * diff(U2_Q_YED(-1))
102 + u2_g_yer_u2_g_yer_L1 * diff(U2_G_YER(-1))
103 + u2_g_yer_u2_stn_L1 * diff(U2_STN(-1))
104 + res_U2_G_YER ;
105
106 diff(U2_STN) = u2_stn_ecm_u2_q_yed_L1 * (U2_Q_YED(-1) - U2_EHIC(-1))
107 + u2_stn_ecm_u2_stn_L1 * (U2_STN(-1) - U2_ESTN(-1))
108 + u2_stn_u2_q_yed_L1 * diff(U2_Q_YED(-1))
109 + u2_stn_u2_g_yer_L1 * diff(U2_G_YER(-1))
110 + res_U2_STN ;
111
112 U2_ESTN = u2_estn_u2_estn_L1 * U2_ESTN(-1)
113 + res_U2_ESTN ;
114
115 U2_EHIC = u2_ehic_u2_ehic_L1 * U2_EHIC(-1)
116 + res_U2_EHIC ;
117
118 diff(DE_Q_YED) = de_q_yed_ecm_de_q_yed_L1 * (DE_Q_YED(-1) - DE_EHIC(-1))
119 + de_q_yed_ecm_u2_stn_L1 * (U2_STN(-1) - U2_ESTN(-1))
120 + de_q_yed_de_g_yer_L1 * diff(DE_G_YER(-1))
121 + de_q_yed_u2_stn_L1 * diff(U2_STN(-1))
122 + res_DE_Q_YED ;
123
124 diff(DE_G_YER) = de_g_yer_ecm_de_q_yed_L1 * (DE_Q_YED(-1) - DE_EHIC(-1))
125 + de_g_yer_ecm_u2_stn_L1 * (U2_STN(-1) - U2_ESTN(-1))
126 + de_g_yer_de_q_yed_L1 * diff(DE_Q_YED(-1))
127 + de_g_yer_de_g_yer_L1 * diff(DE_G_YER(-1))
128 + de_g_yer_u2_stn_L1 * diff(U2_STN(-1))
129 + res_DE_G_YER ;
130
131 DE_EHIC = de_ehic_de_ehic_L1 * DE_EHIC(-1)
132 + res_DE_EHIC ;
133
134 end;
135
136 pooled_fgls(dseries('data_var.mat'), ...
137 {'de','u2'}, ...
138 {'*_q_yed_ecm_*_q_yed_L1', ...
139 '*_q_yed_ecm_u2_stn_L1', ...
140 '*_q_yed_*_g_yer_L1', ...
141 '*_q_yed_u2_stn_L1', ...
142 '*_g_yer_ecm_*_q_yed_L1', ...
143 '*_g_yer_ecm_u2_stn_L1', ...
144 '*_g_yer_*_q_yed_L1', ...
145 '*_g_yer_*_g_yer_L1', ...
146 '*_g_yer_u2_stn_L1', ...
147 '*_ehic_*_ehic_L1'});