File: first_spec_hssmc.mod

package info (click to toggle)
dynare 7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, 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 (41 lines) | stat: -rw-r--r-- 1,508 bytes parent folder | download
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
//File testing error message if initial state vector is not positive definite

@#include "first_spec_common.inc"

varobs q ca;

shocks;
var eeps = 0.04^2;
var nnu = 0.03^2;
var q = 0.01^2;
var ca = 0.01^2;
end;


if ~isoctave % Disabled under Octave because it takes too much time
stoch_simul(order=3,periods=200, irf=0);
send_endogenous_variables_to_workspace;
save('my_data.mat','q','ca');
if matlab.internal.parallel.isPCTInstalled
estimation(datafile='my_data.mat',order=2,mode_compute=0,mh_replic=0,filter_algorithm=sis,nonlinear_filter_initialization=2
    ,cova_compute=0, %tell program that no covariance matrix was computed
           posterior_sampling_method='hssmc',
           posterior_sampler_options=('steps',5,
                                      'lambda',2,
                                      'particles', 200,
                                      'scale',.5,
                                      'target', .25)
);
else % use less particles when not in parallel context
estimation(datafile='my_data.mat',order=2,mode_compute=0,mh_replic=0,filter_algorithm=sis,nonlinear_filter_initialization=2
    ,cova_compute=0, %tell program that no covariance matrix was computed
           posterior_sampling_method='hssmc',
           posterior_sampler_options=('steps',5,
                                      'lambda',2,
                                      'particles', 20,
                                      'scale',.5,
                                      'target', .25)
);

end
end