Debian Codegraph @

tests/estimation/method_of_moments/CET/cet_imh.mod

raw
1 % -------------------------------------------------------------------------
2 % Functionality testing of Bayesian IRF matching with
3 % - independent Metropolis-Hastings
4 % - more than one MCMC chains
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
24 @#include "cet_model.inc"
25
26 options_.prior_interval= 0.95;
27
28 method_of_moments(mom_method = irf_matching
29 %, add_tiny_number_to_cholesky = 1e-14
30 %, additional_optimizer_steps = [4]
31 %, analytic_jacobian
32 %, analytic_standard_errors
33 %, bartlett_kernel_lag
34 %, bounded_shock_support
35 %, brooks_gelman_plotrows
36 , cova_compute=0
37 %, datafile
38 %, dirname=cet_imh_results
39 %, dr
40 %, dr_cycle_reduction_tol
41 %, dr_logarithmic_reduction_maxiter
42 %, dr_logarithmic_reduction_tol
43 %, drop
44 %, first_obs
45 %, geweke_interval
46 %, graph_format
47 %, huge_number
48 , irf_matching_file = cet_irf_matching_file
49 %, k_order_solver
50 %, load_mh_file
51 %, load_results_after_load_mh
52 %, logdata
53 %, lyapunov
54 %, lyapunov_complex_threshold
55 %, lyapunov_doubling_tol
56 %, lyapunov_fixed_point_tol
57 , mcmc_jumping_covariance = prior_variance
58 %, mh_conf_sig = 0.90
59 %, mh_drop = 0.5
60 %, mh_init_scale_factor
61 %, mh_initialize_from_previous_mcmc
62 %, mh_initialize_from_previous_mcmc_directory
63 %, mh_initialize_from_previous_mcmc_prior
64 %, mh_initialize_from_previous_mcmc_record
65 , mh_jscale = 0.5
66 , mh_nblocks = 2
67 %, mh_posterior_mode_estimation
68 %, mh_recover
69 , mh_replic=1000
70 %, mh_tune_guess = 0.5
71 %, mh_tune_jscale = 0.33
72 %, mom_burnin
73 %, mom_seed
74 %, mom_se_tolx
75 %, mode_check
76 %, mode_check_neighbourhood_size
77 %, mode_check_number_of_points
78 %, mode_check_symmetric_plots = 0
79 , mode_compute = 0
80 , mode_file = cet_original_mode
81 %, nobs
82 %, no_posterior_kernel_density
83 %, nodiagnostic
84 , nodisplay
85 %, nograph
86 %, noprint
87 %, optim
88 %, order
89 , penalized_estimator
90 , plot_priors = 0
91 %, posterior_max_subsample_draws
92 %, posterior_sampling_method = 'random_walk_metropolis_hastings'
93 %, posterior_sampler_options = ('proposal_distribution'
94 % ,'rand_multivariate_normal'
95 % ,'rand_multivariate_student'
96 % ,'student_degrees_of_freedom',4
97 % ,'use_mh_covariance_matrix',1
98 % ,'save_tmp_file',1
99 % , scale_file
100 % )
101 %, posterior_sampling_method = 'tailored_random_block_metropolis_hastings'
102 %, posterior_sampler_options = ('proposal_distribution'
103 % ,'rand_multivariate_normal'
104 % ,'rand_multivariate_student'
105 % ,'student_degrees_of_freedom',4
106 % ,'new_block_probability',0.3
107 % ,'mode_compute',1
108 % ,optim
109 % ,'save_tmp_file',1
110 % ,scale_file
111 % )
112 , posterior_sampling_method = 'independent_metropolis_hastings'
113 , posterior_sampler_options = ('proposal_distribution'
114 % ,'rand_multivariate_normal'
115 ,'rand_multivariate_student'
116 ,'student_degrees_of_freedom',4
117 % ,'use_mh_covariance_matrix',1
118 % ,'save_tmp_file',1
119 % ,scale_file
120 )
121 %, posterior_sampling_method = 'slice'
122 %, posterior_sampler_options = ('rotated',1
123 % ,'mode_files'
124 % ,'slice_initialize_with_mode',1
125 % ,'initial_step_size',0.8
126 % ,'use_mh_covariance_matrix',1
127 % ,'save_tmp_file',1
128 % )
129 %, prefilter
130 %, prior_trunc
131 %, pruning
132 %, qz_criterium
133 %, qz_zero_threshold
134 %, raftery_lewis_diagnostics
135 %, raftery_lewis_qrs
136 %, relative_irf
137 %, replic
138 %, schur_vec_tol
139 %, silent_optimizer
140 %, simulation_method = stoch_simul
141 %, simulation_multiple
142 %, sub_draws
143 %, sylvester
144 %, sylvester_fixed_point_tol
145 %, taper_steps
146 %, tex
147 %, use_penalized_objective_for_hessian
148 %, verbose
149 %, weighting_matrix
150 %, weighting_matrix_scaling_factor
151 %, xls_range
152 %, xls_sheet
153 );