Commit Graph

2854 Commits (894b3d69f4662a1132c0f7fb50083bf982745536)

Author SHA1 Message Date
Stéphane Adjemian (Charybdis) 894b3d69f4 Added an option to decide if dsge_likelihood should call univariate filters when the covariance matrix of
the prediction error is singular (default is yes).
2012-09-27 14:48:07 +02:00
Houtan Bastani 868afeb953 ms-sbvar bug fix: store no_create_init as number instead of string 2012-09-26 18:07:49 +02:00
Stéphane Adjemian (Charybdis) 7f42c66723 Fixed bug. Added missing routine which set the step length when computing a numerical gradient. 2012-09-24 12:59:04 +02:00
Stéphane Adjemian (Charybdis) 7e3fbe0b2f Fixed bug in get_prior_info. Initialize objective_function_penalty_base. 2012-09-24 12:59:04 +02:00
Stéphane Adjemian (Charybdis) da159038e6 Added check for BK and steady state in the optimization of the prior density. 2012-09-24 12:59:04 +02:00
Stéphane Adjemian (Charybdis) af7ac86996 Initialize returned variables. 2012-09-24 12:59:04 +02:00
Stéphane Adjemian (Charybdis) df26c6686d Fixed bug. 2012-09-24 12:59:03 +02:00
Stéphane Adjemian (Charybdis) 233d0ae0d2 Added output to get_prior_info (non empty iff info=1). 2012-09-24 12:59:03 +02:00
Stéphane Adjemian (Charybdis) e552b0c0e0 Added fake outputs. 2012-09-24 12:59:03 +02:00
Michel Juillard 8db0fee155 removed useless lines 2012-09-23 21:04:22 +02:00
Stéphane Adjemian (Charybdis) d0d0b6ed52 Use new numgrad routines.
options_.gradient method = {12,22} two points formula.
options_.gradient method = {13,23} three points formula.
options_.gradient method = {15,25} four points formula.

Still need to decide what to do with (local) option zgrad.
2012-09-21 17:05:36 +02:00
Stéphane Adjemian (Charybdis) 4ce4242d0d Added new numgrad* routines (h specific to each direction). 2012-09-21 17:05:36 +02:00
Stéphane Adjemian (Scylla) e67d3d3fea Added missing semicolon. 2012-09-20 16:38:19 +02:00
Michel Juillard f944a43b0c added code for computing risky steady state in regular models (not
portfolio models)
2012-09-19 22:51:44 +02:00
Michel Juillard c8c102b43a reorganized code and added comments 2012-09-19 22:51:44 +02:00
Michel Juillard 0a5909f1d2 fixed bug with deterministic exogenous variables at order==2 (moved
all relevant code to stochastic_solvers.m)
2012-09-19 22:51:44 +02:00
Stéphane Adjemian (Scylla) c29fa9d81c Fixed bug (wrong index). 2012-09-19 17:03:07 +02:00
Stéphane Adjemian (Scylla) 914d97fb53 Added waitbar to prior_sampler routine. 2012-09-19 16:27:43 +02:00
Stéphane Adjemian (Scylla) 0f7076846f Save *all* the prior draws generated by prior_sampler, even if info(1) returned by resol is positive. 2012-09-19 13:44:57 +02:00
Stéphane Adjemian (Scylla) 465bb6c144 Added missing call to set_state_space. 2012-09-19 12:27:11 +02:00
Stéphane Adjemian (Scylla) 59a3db051f Temporarly set options_.order equal to one in get_prior_info routine. 2012-09-19 12:07:16 +02:00
Sébastien Villemot 7fd9ab1473 Remove unused variables 2012-09-19 10:47:12 +02:00
Johannes Pfeifer 9d555075d6 Fixed bug in dyn_second_order_solver.m where ghuu was not correctly stored in dr 2012-09-19 00:05:28 +02:00
Sébastien Villemot 7de6be31e6 Upgrade the minimum requirement to MATLAB 7.3 (R2006b) 2012-09-18 11:54:40 +02:00
Sébastien Villemot 6adb58dbc1 Remove workaround for Octave 3.2 (we now require 3.4) 2012-09-18 11:42:11 +02:00
Sébastien Villemot c41ce4ae69 Merge remote-tracking branch 'ratto/master' 2012-09-18 11:13:50 +02:00
Sébastien Villemot fd7386b593 Merge remote-tracking branch 'jpfeifer/master' 2012-09-18 11:13:46 +02:00
Sébastien Villemot cba7a3fcc8 Homogeneize behavior for PDF and FIG under Octave 2012-09-18 11:12:11 +02:00
Marco Ratto fce6c5cc31 Increase accuracy in printing cosn for collinearity patterns 2012-09-18 10:42:01 +02:00
Marco Ratto dbbc8e66b7 Fix to compute derivatives with Kronecker products (just for testing). 2012-09-18 10:41:16 +02:00
Sébastien Villemot 8d4c812671 Merge remote-tracking branch 'ratto/master' 2012-09-17 10:29:53 +02:00
Johannes Pfeifer d50e68ef2d Merge branch 'master' of ssh://kirikou.dynare.org/srv/d_kirikou/git/dynare 2012-09-16 12:11:51 +02:00
Johannes Pfeifer 24a5bd4868 Fixed bug where when using mode_compute=0 with a mode-file from mode_compute=6, mh_jscale is not loaded. 2012-09-16 12:10:53 +02:00
Johannes Pfeifer c2ce75aa45 Fixed bug in set_prior.m when correlations are estimated. Corrected description in header of prior_bounds.m 2012-09-14 18:00:12 +02:00
Marco Ratto b756ee1819 Analytic derivatives: make them work for lik_init==2 as well
(lik_init =3 and =4 still to be worked out)
2012-09-14 17:07:38 +02:00
Marco Ratto e637319be5 bug fix. the diffuse filter should simply penalize the likelihood with the NaN without breaking the estimation (this is in line with missing_observations_kalman_filter_d.m). 2012-09-14 17:05:35 +02:00
Stéphane Adjemian (Scylla) 3658b02455 Fixed bug. If info==19 (steady state routine returns check=1) info(2) is NaN, so that it is not possible to define an endogenous penalty. In this case we just add one to objective_function_penalty_base.
(cherry picked from commit d2912b264c326b3f349984b605787045b028b992)
2012-09-14 17:05:31 +02:00
Sébastien Villemot c74b1d1bdc Provisions for MATLAB 8.0 (R2012b) 2012-09-14 11:10:47 +02:00
Marco Ratto 428b193c11 Need to pass the entire global workspace, if subroutines called by the _core loops need them. Updated parallel test. 2012-09-11 15:45:08 +02:00
Sébastien Villemot c65ff9d988 Fix crash with MATLAB 7.1 and 7.2 under Windows
Closes: #277
2012-09-11 12:32:27 +02:00
Sébastien Villemot 2d66c68301 Fix function header 2012-09-11 11:16:40 +02:00
Michel Juillard 07193b2cfa fixing bug in computing full_rank for purely backward models 2012-09-11 10:06:38 +02:00
Michel Juillard 92833d3ceb In CHECK, use the eigenvalues as computed by the reordered real
generalized Schur decomposition, rather than the ones computed by
eig()
2012-09-10 14:27:56 +02:00
Michel Juillard a22d1d415a replaced rank() by rcond() in evaluating whether Z22 is full rank in
checking Blanchard and Kahn conditions with CHECK
2012-09-10 13:26:05 +02:00
Stéphane Adjemian (Scylla) 205b455ad7 Added the possibility, for each given size of the sample, to restart an arbitrary number of times the estimation when estimating a model with a recursive approach.
Deactivated by default (options_.recursive_estimation_restart is defined to be zero in global_initialization.m).
2012-09-06 14:13:29 +02:00
Stéphane Adjemian (Scylla) 8a0fe91480 Removed annoying warning messages. 2012-09-06 12:22:32 +02:00
Stéphane Adjemian (Scylla) 43e2c9ecef Added a routine to test if a file exist. 2012-09-06 12:21:28 +02:00
Stéphane Adjemian (Scylla) 19c46dba55 Improved recursive estimation. Run the estimation using previous results (saved in <M_.fname>_mode.mat). 2012-09-06 11:14:48 +02:00
Marco Ratto 6beb4e3f8f small bug fix 2012-08-30 14:59:32 +02:00
Michel Juillard e8f159f66b fixing bugs in previous commit 2012-08-30 12:44:46 +02:00