Commit Graph

288 Commits (74ed99c6cac1df5456f197cea88ca054353c59f1)

Author SHA1 Message Date
Stéphane Adjemian (Charybdis) 5417b27ac7 Fixed indentation of matlab files. 2017-05-16 15:10:20 +02:00
Stéphane Adjemian (Charybdis) 88e1701289 Removed useless commas and semicolons. 2017-05-16 13:24:46 +02:00
Johannes Pfeifer 00299a92c1 Make sure options_.first_obs is properly set 2017-04-05 11:44:27 +02:00
Houtan Bastani 732aa8c30c Merge remote-tracking branch 'rattoma/slice' 2017-03-24 16:19:04 +01:00
Houtan Bastani e5f1d20221 change dyn_figure to take a nodisplay and graph_format arguments as opposed to options_. closes #1415 2017-03-23 17:59:05 +01:00
Houtan Bastani 2aa85f978a change dyn_figure to take a nodisplay argument as opposed to options_. #1415 2017-03-23 14:30:16 +01:00
Marco Ratto 99dbc8c74d bug fix with redundant call to prior_bounds 2017-03-22 23:08:18 +01:00
Marco Ratto 1e3e2f70a9 set posterior sampler options when load_mh_file 2017-03-18 00:06:15 +01:00
Stéphane Adjemian (Charybdis) cc34e16458 Set temporarily mode_compute and mh_replic to zero if estim_params_ is empty. 2017-03-16 15:45:08 +01:00
Stéphane Adjemian (Charybdis) 9fbef0c107 Removed penalty_hessian routine.
+ Code factorization.
 + Added an option for using the penalized objective when computing numerically
 the hessian at the mode.

Previous behaviour (introduced with penalty_hessian routine) was to compute the
hessian matrix at the mode with the penalized objective function (instead of
the original objective function). This behaviour hides problematic situations,
where the computed hessian (using the original objective) would not be full
rank. For instance, if the estimation ends up with a parameter on (or very
close to) the bounds of its possible values (which is often not a desirable
outcome), the estimated posterior variance would be zero for this
parameter (with the original objective) because the hessian is not finite in
this direction, while the posterior variance would be positive if the penalized
objective is used instead. But this estimate would not be reliable by
construction of the penalty which is quite ad-hoc (more fundamentally I do not
think that there exists any rational for approximating the covariance matrix
with the inverse of the hessian matrix if the mode is on the border of the set
of possible values).

This commit restore the behaviour previous to 2446ab02ba.

An option is available for computing the hessian with the penalized
objective function.
2017-02-08 13:07:25 +00:00
Johannes Pfeifer 7b4fc9ec4a Moving loading of MCMC_jumping_covariance to after display of standard errors and computation of Laplace approximation
Closes #1255
2016-12-27 12:07:22 +01:00
Johannes Pfeifer 352786c2b4 load_mh_file: recompute results by default and load on request
Prevents general overwriting of results in oo_ and having stale results
2016-12-19 19:37:34 +01:00
Johannes Pfeifer 2f717b5adc Eliminate global variables from shock_decomposition.m 2016-12-18 09:57:51 +01:00
Johannes Pfeifer 98cf1bfc1d Add smoothed state uncertainty to Kalman smoother routines 2016-11-04 09:23:55 +01:00
Johannes Pfeifer 1f0c2e3b1c Make sure that options_.qz_criterium is not affected by calls to dynare_estimation.m 2016-10-02 10:51:47 +02:00
Marco Ratto eae0828a40 make computations around invhess more robust numerically. 2016-09-05 12:16:07 +02:00
Johannes Pfeifer 08d53206a9 Port textwidth figure format change to dynare_estimation_1.m 2016-08-23 17:22:41 +02:00
Johannes Pfeifer 73afe7d02f Change fixed LaTeX figure width into \textwidth scaling
Improves readability
2016-08-23 17:22:41 +02:00
Johannes Pfeifer fa3a71bcae Make warning message in dynare_estimation_1.m more informative 2016-08-22 19:24:35 +02:00
Johannes Pfeifer 6368636ee0 Move Kalman filter options consistency checks to dynare_estimation_init.m 2016-08-22 19:24:35 +02:00
Johannes Pfeifer 8aaca040b3 Expand check of fast_kalman_filter for presence of block-option 2016-08-22 19:24:35 +02: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
Johannes Pfeifer f2f44a0989 Save log_density at the mode and document oo_.posterior-fields 2016-07-20 20:48:24 +02:00
Johannes Pfeifer 4486d098b5 Save dsge_var objects at the mode 2016-06-15 00:30:28 +02:00
Johannes Pfeifer 2cf882fec5 Remove comments on dynare_estimation_1.m after implementing store_smoother_results 2016-06-15 00:30:28 +02:00
Johannes Pfeifer d08fd37986 Do not set oo_.posterior.optimization-fields when mh_posterior_mode_estimation is used 2016-06-15 00:30:28 +02:00
Johannes Pfeifer 552a9b5230 Fix bugs previously introduces in dynare_estimation_1.m related to penalty function 2016-06-15 00:30:28 +02:00
Johannes Pfeifer 2446ab02ba Transform persistent variables of newrat.m into function arguments 2016-06-15 00:30:28 +02:00
Johannes Pfeifer 329b91d717 Harmonize output of objective functions
Closes #1149
Mirrors 1ad8df4635
2016-06-15 00:30:28 +02:00
Houtan Bastani b454c28096 fix latex compilation on linux. #1207 2016-06-14 11:37:16 +02:00
Stéphane Adjemian (Charybdis) 67b808207c Added new algorithm for the estimation of nonlinear models. 2016-06-01 16:29:53 +02:00
Johannes Pfeifer 2baf88da47 Remove adaptive_metropolis_hastings 2016-05-19 23:16:29 +02:00
Johannes Pfeifer 86fcde0879 Cosmetic changes to dynare_estimation_1.m and store_smoother_results.m 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 8bd963de64 Fill in posterior_mode with info from posterior samples. 2016-05-19 14:34:09 +02:00
Marco Ratto 46908d20c6 Provisions for new posterior sampler routines that factorize the individual iteration of individual samplers.
I contains a quick fix to adaptive_posterior_sampler.m, which cannot be embedded in the new structure.
2016-05-19 14:34:09 +02:00
Marco Ratto 951dfe8ff4 When mh_posterior_mode_estimation, trap cases where the prior mode is at the boundary. 2016-05-19 14:34:09 +02:00
Marco Ratto a3ab6de6c8 Added function to compute of inefficiency factors, used in McMCDiagnostics.m
Requires missing autocorr (available in some MATLAB toolboxes).
Requires factor out CutSample in dynare_estimation_1.m
2016-05-19 14:34:09 +02:00
Houtan Bastani 25121bca4f fix copyright dates 2016-05-04 16:05:31 +02:00
Johannes Pfeifer 6ad876cc18 Rename write_smoother_results to store_smoother_results.m to avoid confusion about its purpose 2016-04-12 11:37:12 +02:00
Johannes Pfeifer 6f8ca74490 Factorize saving of smoother results
Also takes care of prefilter and loglinear option for calib_smoother
Closes #803 and #804
2016-03-23 10:31:11 +01:00
Johannes Pfeifer fb20b464d4 Remove bayestopt_.mean_varobs and use dataset_info instead
Closes #255
2016-03-23 10:31:09 +01:00
Johannes Pfeifer dcf0d75d55 Add output of trend to DsgeSmoother.m and use it to reconstruct smoothed and filtered values 2016-03-23 10:19:41 +01:00
Johannes Pfeifer 1c816aef24 Various interrelated bugfixes dealing with detrending 2016-03-23 10:19:40 +01:00
Stéphane Adjemian (Charybdis) a1aa2bcd6e Changed second input of prior_bounds routine.
Do not pass options_ structure but only the required field (prior_trunc).
2015-12-11 18:50:54 +01:00
Stéphane Adjemian (Charybdis) 5fb1b1cc23 Added Weibull prior. 2015-12-04 14:50:44 +01:00
Michel Juillard c373d1e1be adding new option 'fast_kalman_filter' implementing Ed Herbst 2012 approach 2015-11-28 17:38:00 +01:00
Michel Juillard 105100c7fe remove global in dyn_forecast() and change input and output arguments 2015-11-28 17:38:00 +01:00
Johannes Pfeifer ca5c714e29 Replace global variables in CutSample.m and metropolis_draw.m by function arguments
Makes them usable outside of their current environment
2015-07-28 15:36:59 +02:00
Johannes Pfeifer 84e04522bf Account for options_.nk potentially being empty. 2015-07-21 10:41:47 +02:00