Debian Codegraph @

tests/estimation/method_of_moments/CET/cet_tarb.mod

raw
1 % -------------------------------------------------------------------------
2 % Functionality testing of Bayesian IRF matching with
3 % - Tailored-Randomized-Block Metropolis-Hastings
4 % - reuse previous MCMC mode for optimization
5 % -------------------------------------------------------------------------
6
7 % Copyright © 2023 Dynare Team
8 %
9 % This file is part of Dynare.
10 %
11 % Dynare is free software: you can redistribute it and/or modify
12 % it under the terms of the GNU General Public License as published by
13 % the Free Software Foundation, either version 3 of the License, or
14 % (at your option) any later version.
15 %
16 % Dynare is distributed in the hope that it will be useful,
17 % but WITHOUT ANY WARRANTY; without even the implied warranty of
18 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 % GNU General Public License for more details.
20 %
21 % You should have received a copy of the GNU General Public License
22 % along with Dynare. If not, see <https://www.gnu.org/licenses/>.
23 @#define LESSPARAMS=1
24 @#include "cet_model.inc"
25
26 options_.prior_interval= 0.95;
27
28
29 method_of_moments(mom_method = irf_matching
30 %, add_tiny_number_to_cholesky = 1e-14
31 , additional_optimizer_steps = [4]
32 %, analytic_jacobian
33 %, analytic_standard_errors
34 %, bartlett_kernel_lag
35 %, bounded_shock_support
36 %, brooks_gelman_plotrows
37 , cova_compute=1
38 %, datafile
39 , dirname=cet_tarb_results
40 %, dr
41 %, dr_cycle_reduction_tol
42 %, dr_logarithmic_reduction_maxiter
43 %, dr_logarithmic_reduction_tol
44 %, drop
45 %, first_obs
46 %, geweke_interval
47 %, graph_format
48 %, huge_number
49 , irf_matching_file = cet_irf_matching_file
50 %, k_order_solver
51 %, load_mh_file
52 %, load_results_after_load_mh
53 %, logdata
54 %, lyapunov
55 %, lyapunov_complex_threshold
56 %, lyapunov_doubling_tol
57 %, lyapunov_fixed_point_tol
58 %, mcmc_jumping_covariance
59 , mh_conf_sig = 0.90
60 %, mh_drop = 0.5
61 %, mh_init_scale_factor
62 %, mh_initialize_from_previous_mcmc
63 %, mh_initialize_from_previous_mcmc_directory
64 %, mh_initialize_from_previous_mcmc_prior
65 %, mh_initialize_from_previous_mcmc_record
66 , mh_jscale = 0.5
67 , mh_nblocks = 1
68 %, mh_posterior_mode_estimation
69 %, mh_recover
70 , mh_replic=5
71 %, mh_tune_guess = 0.5
72 %, mh_tune_jscale = 0.33
73 %, mom_burnin
74 %, mom_seed
75 %, mom_se_tolx
76 , mode_check
77 %, mode_check_neighbourhood_size
78 %, mode_check_number_of_points
79 %, mode_check_symmetric_plots = 0
80 , mode_compute = 0
81 , mode_file = cet_original_mode
82 %, nobs
83 %, no_posterior_kernel_density
84 %, nodiagnostic
85 %, nodisplay
86 , nograph
87 %, noprint
88 %, optim
89 %, order
90 %, penalized_estimator
91 , plot_priors = 0
92 %, posterior_max_subsample_draws
93 %, posterior_sampling_method = 'random_walk_metropolis_hastings'
94 %, posterior_sampler_options = ('proposal_distribution'
95 % ,'rand_multivariate_normal'
96 % ,'rand_multivariate_student'
97 % ,'student_degrees_of_freedom',4
98 % ,'use_mh_covariance_matrix',1
99 % ,'save_tmp_file',1
100 % , scale_file
101 % )
102 , posterior_sampling_method = 'tailored_random_block_metropolis_hastings'
103 , posterior_sampler_options = ('proposal_distribution'
104 % ,'rand_multivariate_normal'
105 ,'rand_multivariate_student'
106 ,'student_degrees_of_freedom',4
107 ,'new_block_probability',0.25
108 ,'mode_compute',4
109 % ,optim
110 % ,'save_tmp_file',1
111 % ,scale_file
112 )
113 %, posterior_sampling_method = 'independent_metropolis_hastings'
114 %, posterior_sampler_options = ('proposal_distribution'
115 % ,'rand_multivariate_normal'
116 % ,'rand_multivariate_student'
117 % ,'student_degrees_of_freedom',4
118 % ,'use_mh_covariance_matrix',1
119 % ,'save_tmp_file',1
120 % ,scale_file
121 % )
122 %, posterior_sampling_method = 'slice'
123 %, posterior_sampler_options = ('rotated',1
124 % ,'mode_files'
125 % ,'slice_initialize_with_mode',1
126 % ,'initial_step_size',0.8
127 % ,'use_mh_covariance_matrix',1
128 % ,'save_tmp_file',1
129 % )
130 %, prefilter
131 %, prior_trunc
132 %, pruning
133 %, qz_criterium
134 %, qz_zero_threshold
135 %, raftery_lewis_diagnostics
136 %, raftery_lewis_qrs
137 %, relative_irf
138 %, replic
139 %, schur_vec_tol
140 %, silent_optimizer
141 %, simulation_method = stoch_simul
142 %, simulation_multiple
143 %, sub_draws
144 %, sylvester
145 %, sylvester_fixed_point_tol
146 %, taper_steps
147 , tex
148 %, use_penalized_objective_for_hessian
149 %, verbose
150 %, weighting_matrix
151 %, weighting_matrix_scaling_factor
152 %, xls_range
153 %, xls_sheet
154 );
155
156
157 method_of_moments(mom_method = irf_matching
158 , additional_optimizer_steps = [4]
159 , cova_compute=1
160 , dirname=cet_tarb_results
161 , irf_matching_file = cet_irf_matching_file
162 , mh_conf_sig = 0.90
163 , mh_replic=0
164 %, mode_check
165 , mode_compute = 5
166 , mode_file = 'cet_tarb_results/method_of_moments/cet_tarb_mh_mode'
167 , plot_priors = 0
168 , nograph
169 );
170
171 %%%%%%%%%%%
172 %% LATEX %%
173 %%%%%%%%%%%
174 collect_latex_files;
175 if system(['pdflatex -halt-on-error -interaction=batchmode ' M_.fname '_TeX_binder.tex'])
176 error('TeX-File did not compile.')
177 end