Commit Graph

145 Commits (4c1af7890bf2a1ea68a218f13890f2f6a2f1b66a)

Author SHA1 Message Date
Johannes Pfeifer 7094a45f6d Revert "Make error message for prior violation more explicit by adding second argument to info()"
This reverts commit 2815d5fbd4.
2013-05-02 14:31:29 +02:00
Johannes Pfeifer 2815d5fbd4 Make error message for prior violation more explicit by adding second argument to info() 2013-04-26 20:20:23 +02:00
Sébastien Villemot e1f702f83a Various fixes to steady state computation in estimation DLL
Still not working… Valgrind detects unitialized values during the call to
hybridjs…
2013-04-18 18:28:34 +02:00
Johannes Pfeifer 40e5c61ec7 Restrict endogenous prior to stationary models and allow for measurement error 2013-03-18 23:46:15 +01:00
Johannes Pfeifer a090a7c35e Add endogenous priors
Add option and code for endogenous priors according to
Christiano/Trabandt/Walentin 2011, JEDC. Still needs to be integrated to
manual and pre-processor.
2013-03-17 22:51:23 +01:00
Michel Juillard 74c300939a making sure that dsge_likelihood.m always returns a value in fval 2012-10-24 10:02:17 +02:00
Michel Juillard dd8f16c8db Revert "reset penalty to 1.e8." Too big a penaly is not desirable.
This reverts commit fcceec896a.
2012-10-01 14:23:21 +02:00
Marco Ratto fcceec896a reset penalty to 1.e8. 2012-10-01 08:53:50 +02:00
Sébastien Villemot 421e1a39fc Merge remote-tracking branch 'ratto/master' 2012-09-27 16:36:00 +02:00
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
Marco Ratto 16fa6efc8d Replace NaN with numeric penalty when diffuse filter does not kill unit roots. 2012-09-26 16:00:18 +02:00
Sébastien Villemot 8d4c812671 Merge remote-tracking branch 'ratto/master' 2012-09-17 10:29:53 +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
Michel Juillard d60202616a fixed problem with penalty in estimation. Created a new global scalar:
objective_function_penalty_base. It is the only simple way that I
found to keep csminwel1.m to be able to handle general functions.
2012-08-28 12:17:07 +02:00
Marco Ratto 6b91301365 Reduce memory requirements for analytic Hessian.
Tested with QUEST III (Ratto et al. 2009): 63 params and 59 state dimension.
2012-08-21 16:00:55 +02:00
Michel Juillard 2e9ae5df28 dealing with info == 8 (Nan in Jacobian) during estimation 2012-08-06 12:00:03 +02:00
Michel Juillard 6b3bd9dd0b penalty is now passed as a field of bayestopt_ (or BayesInfo) 2012-08-02 22:23:29 +02:00
Marco Ratto 47353a276b bug fix: the anlytic hessian was wrong with estimated stderr.
Manual cherry pick from Commit: 36853cb7615de41ca61ed92decf8bbe81ab40cba
2012-08-02 14:57:20 +02:00
Marco Ratto ed4d37341c Fix problem with models where steadystate files change parameter values.
1) allow to compute derivatives starting from NUMERICAL derivatives of jacobian and steady state: this has a minor cost in accuracy and allow apply without errors identification and estimation with numerical derivatives;
2) added trap in dynare_estimation_init: if steadystate changes param values, automaticly shifts to numerical derivs of jacoban and steady state +  analytic derivatives of all the rest;
3) bug fixes for 2nd order derivatives w.r.t. model parameters;
2012-07-05 10:14:10 +02:00
Stéphane Adjemian (Charybdis) 379972d715 Removed prior_penalty in dsge_likelihood.
If options_.prior_trunc is set to zero (the default is strictly positive) then prior_correction is infinite because the prior density is zero (this is not true for the uniform prior)... This does not help the optimizer. Even if we do not fall in this case (because options_.prior_trunc>0 or becuase only uniform priors are used for the bounded parameters) the meaning of this correction is unclear.
2012-07-04 13:04:49 +02:00
Stéphane Adjemian (Charybdis) abad13d020 Kill estimation if the likelihood is complex or NaN. 2012-06-14 15:32:15 +02:00
Ferhat Mihoubi 2a8436aa44 Extends the block Kalman filter to the missing observations case (not called for the moment) 2012-06-11 10:39:25 +02:00
Sébastien Villemot 129553579a Merge remote-tracking branch 'ratto/master' 2012-06-08 18:24:18 +02:00
Sébastien Villemot 1f9cea669a Update copyright notices 2012-06-08 18:22:34 +02:00
Marco Ratto 69d015a777 Asymptotic Hessian now works also for univariate stationary KF. 2012-06-08 15:26:14 +02:00
Marco Ratto 2fecf9946b 1) Extended optimizer = 5 for analytic derivatives;
2) Start adapting identification routines to allow computation of analytic asymptotic Hessian with KF routines
2012-06-08 14:23:18 +02:00
Sébastien Villemot c26a211827 analytic_derivation and loglinear are incompatible 2012-06-08 11:33:33 +02:00
Marco Ratto 7f9d2968d9 fixed bug introduced in previous commit: offset needs to be computed for analytic derivatives. 2012-06-08 08:50:07 +02:00
Stéphane Adjemian (Charybdis) 06ca265272 Complete the bug fix for the calibrated correlations in the structural and measurement covariance matrices.
Call   set_all_parameters  routine   in  dsge_likelihood.   Note  that
correlations between innovations are not allowed in dsge-var models.
2012-06-07 15:13:39 +02:00
Stéphane Adjemian (Charybdis) 3cbd702b3e Fixed bugs (initialization of the Kalman filter with the fixed point of the Riccatti equation). 2012-06-06 18:25:07 +02:00
Marco Ratto dc7c0fa74d Include prior info in penalty with Bayesian estimation.
This can improve a bit optimization routines when parameter go beyond prior bounds during line search algorithms or when numerical gradient is computed.
2012-05-31 14:44:16 +02:00
Marco Ratto da9ec0f187 Estimation with analytic scores and hessian;
This includes re-setting the list of output arguments in objective functions
Added test function
2012-04-29 21:18:33 +02:00
Marco Ratto bb02c4d6df Bug fix for univariate KF (nobs was not defined, replaced with pp) + provisions fro eliminating dsge_likelihood_hh function; 2012-04-29 21:18:33 +02:00
Ferhat eed54fb08a - Adds new algorithms to solve Lyapunov equations: Doubling algorithm and Square root solver. Their respective names are "doubling" and "square_root_solver".
- Adds the tolerance criteria for the iterative solvers (sylvester_fixed_point_tol, lyapunov_fixed_point_tol and lyapunov_doubling_tol)
- Updates the reference manual
2012-04-20 19:23:00 +02:00
Ferhat Mihoubi 8ac14f8c80 Adds fixed point solvers for Sylvester and Lyapunov equations 2012-03-06 12:03:23 +01:00
Michel Juillard 636cd1bae6 calling always multivariate Kalman filter first, even if univariate
diffuse Kalman filter was used before
2012-01-22 18:59:19 +01:00
Michel Juillard cfb5114d41 corecting logic for selecting univariate diffuse filter and dealing
with correlated measurement errors
2012-01-22 18:37:29 +01:00
Michel Juillard 111347469f adding comment explaining initialization of persistent variable
penalty in dsge_likelihood.m and dsge_likelihood_hh.m Removed misleading
initialization code. Added call to dsge_likelihood_hh in
initial_estimation_checks to initialize persistent variable in that
function as well.
2012-01-09 21:23:17 +01:00
Michel Juillard f9d2dec97f preparing dsge_loglikelihood.m for future integration of estimation DLL 2012-01-08 21:55:02 +01:00
Michel Juillard d12e1b7801 replaced BayesInfo.penalty by penalty as it is now a persistent variable 2012-01-08 17:58:22 +01:00
Stéphane Adjemian (Charybdis) bf69bac140 Fixed typo in comments. 2011-12-26 17:46:49 +01:00
Stéphane Adjemian (Charybdis) 41c8faf176 Fixed header. 2011-12-26 17:46:49 +01:00
Stéphane Adjemian (Charybdis) ecac871435 Changed the name of DsgeLikelihood (-> dsge_likelihood). 2011-12-26 17:46:48 +01:00