File: dummy_model.mod

package info (click to toggle)
dynare 7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 79,248 kB
  • sloc: cpp: 82,011; ansic: 28,583; objc: 12,573; yacc: 5,105; pascal: 2,374; lex: 1,502; python: 1,118; sh: 1,116; makefile: 605; lisp: 162; xml: 18
file content (60 lines) | stat: -rw-r--r-- 930 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
var x y z;

varexo u v;

parameters a d e f g;

a = 0.98;
g = 0.25;
d = 0.80;
e = 0.90;
f = 0.50;

model;

    z = a*z(-1) + u + g*u(-1);

    y = d*y(1) + z;

    x = e*x(-1) + f*y + v;

end;

steady;

check;

shocks;
var u = 0.01;
var v = 0.01;
end;

stoch_simul(order=1,irf=0,periods=10000);

save('mydata.mat','x','y','z');

estimated_params;
  e, beta_pdf, 0.90, 0.05;
  d, beta_pdf, 0.80, 0.05;
  g, beta_pdf, 0.25, 0.05;
end;

varobs x, y;

//estimation(datafile=mydata,order=1,first_obs=5001,nobs=100,mh_replic=0);

options_.particle.status = 1;
options_.particle.initialization = 1;
options_.particle.number_of_particles = 1000;

options_.mode_check_neighbourhood_size = 0.05;

set_dynare_threads('local_state_space_iteration2',2);

estimated_params_init;
e, 0.9009;
d, 0.7912;
g, 0.2448;
end;

estimation(datafile=mydata,order=2,first_obs=5001,nobs=100,mh_replic=0,mode_compute=8,silent_optimizer,filter_algorithm=sis);