Commit Graph

16 Commits (beb7d42d748f9f0f5216ed7aca93dceb4f73df2c)

Author SHA1 Message Date
Sébastien Villemot 7a75872f72
Modernization: use tilde (~) syntax for ignored output arguments 2018-11-13 18:02:09 +01:00
Stéphane Adjemian (Charybdis) 5417b27ac7 Fixed indentation of matlab files. 2017-05-16 15:10:20 +02:00
Stéphane Adjemian (Charybdis) a53636e24e Fixed copyright notices. 2017-05-16 14:11:15 +02:00
Stéphane Adjemian (Charybdis) 88e1701289 Removed useless commas and semicolons. 2017-05-16 13:24:46 +02:00
Marco Ratto b77791c541 ensure invhess is empty with slice for proper prior initialization of chains 2017-03-22 23:06:19 +01:00
Johannes Pfeifer 7831dccd2a Transform save_tmp_file into an option and change defaults 2016-11-04 19:56:55 +01:00
Johannes Pfeifer df8ad833fb Transform automatic loading of optimal_mh_scale_parameter.mat into option scale_file
Closes #503
2016-08-22 16:27:32 +02:00
Marco Ratto 3e8dbcfc7e Set mode_files in such a way that it can be handled with key-value pair.
We need a single mode file that contains variable xparams = [x1 x2 x3] all multiple modes, one per column.
Fixes #1199
2016-05-22 23:15:18 +02:00
Johannes Pfeifer 4898a66d2a Allow passing of optim option for TaRB 2016-05-19 14:37:05 +02:00
Marco Ratto 1d6961cc4c initialize mode field in slice sampler options 2016-05-19 14:37:05 +02:00
Marco Ratto e5ab7ed992 fixed unknown options warning messages 2016-05-19 14:37:05 +02:00
Marco Ratto 7b3c42c6e1 provisions for reworked posterior sampling options:
- handle sub lists of individual samplers
- split checks in dynare_estimation_init.m and before running posterior_sampler.m [invhess checks]
- posterior sampler options checks moved from initial_estimation_checks.m to check_posterior_sampler_options.m
- added use_mh_covariance_matrix to imh and rwmh
- slice re-sets mode_compute=0 cova_compute=0
- updated test function
2016-05-19 14:37:05 +02:00
Marco Ratto 35a1c7ac17 Commented options for slice sampler, including default values and associated restrictions/default for main options_ fields 2016-05-19 14:34:09 +02:00
Marco Ratto 0c01565298 Allow sampler specific options via optim;
bug fixes on options logic
2016-05-19 14:34:09 +02:00
Marco Ratto a96dd5b964 for slice, always initialize empty invhess unless a new chain is initialized from a mode file 2016-05-19 14:34:09 +02:00
Marco Ratto c30b6f20a6 Added routines that factor out posterior samplers into the iteration routine posterior_sampler_iteration.m.
It generalizes the random_walk_metropolis_hastings.m structure but adds two new items:
- check_posterior_sampler_options.m which is a wrapper for method specific options (stored in options_.posterior_options)
- posterior_sampler_iteration.m which is a wrapper of the individual iteration of any posterior sampler.

It already embeds, with parallelization implementation:
- random_walk metropolis hastings
- independent metropolis hastings
- slice sampler

It also contains a quick fix for TARB, although the latter should be embedded in posterior_sampler_iteration.m as well.

Any new posterior sampler can be simply added to posterior_sampler_iteration.m, with  wrapper to specific iterations in check_posterior_sampler_options.m
2016-05-19 14:34:09 +02:00