Commit Graph

86 Commits (9d91625c10374adaec0b75a137af917ef7ed0583)

Author SHA1 Message Date
Michel Juillard 9d91625c10 fixing bug related to measurement errors 2011-11-02 11:10:58 +01:00
Ferhat Mihoubi af65943f6f A last argument (the number of observed variables which are not state variables) is needed in block_kalman_filter 2011-10-28 22:36:40 +02:00
Ferhat Mihoubi d16caeebf0 "M_" global variable is replaced by the "Model" input argument in block_kalman_filter call 2011-10-28 22:34:52 +02:00
Ferhat Mihoubi 1b35d574d0 minor corrections related to mf replaced by Z (index of observable variables in the transition matrix) 2011-10-28 22:29:54 +02:00
Michel Juillard 30afa5f415 fixed handling of correlation in covariance of measurement errors 2011-10-22 15:26:07 +02:00
Marco Ratto c6a9650d20 Adapt identification routines after new dynare estimation commits. 2011-09-28 20:48:47 +02:00
Sébastien Villemot f250f029af Fix bug related to the renaming of options_ in DynareOptions within DsgeLikelihood.m 2011-09-27 16:39:10 +02:00
Sébastien Villemot 3f2e29f7bf Adapt block_kalman_filter to Dynare's way of handling errors in MEX files 2011-09-23 18:21:04 +02:00
Sébastien Villemot 16e9c36eb4 Merge ferhat's branch 2011-09-23 18:09:06 +02:00
Stéphane Adjemian (Charybdis) e0fa737cee Fixed bug in dynare_resolve (wrong calling sequence introduced in commit #013c599ec92f7d6e5fc3f351a58d9aa5ba401410).
Removed globals from DsgeVarLikelihood and changed the calling sequence. As in DsgeLikelihood, the penalty is now a
persistent variable.

Added a global structure for the data: dataset_.

Removed globals from dsgevar_posterior_density and mode_check.

Simplification of the clode, definition of the variable objective_function at the top of dynare_estimation_1 (equal
to 'DsgeLikelihood' or 'DsgeVarLikelihood').
2011-09-22 11:17:31 +02:00
Stéphane Adjemian (Charybdis) c309b0cf57 Fixed bug related to the initialization of the persistent variable. 2011-09-21 08:30:26 +02:00
Ferhat Mihoubi 3d1a0c2652 block-Kalman filter is now available when block option is used 2011-09-20 14:18:31 +02:00
Stéphane Adjemian (Charybdis) d56d35f12b Added missing initialization of diffusion_periods (when the diffuse filter is not used). 2011-09-20 10:13:01 +02:00
Stéphane Adjemian (Scylla) fc96f6523e Initialization of the output arguments before the declaration of the persistent variable (matlab crashes otherwise). 2011-09-19 17:50:23 +02:00
Stéphane Adjemian (Scylla) f2ca6d0ad9 Changed kalman filter routines to allow for arbitrary initial conditions (needed for the introduction of breaks on the estimated
parameters and also for the estimation of the initial states).

Added specialized routines for steady state  kalman filter.

Completed header of DsgeLikelihood (missing refs to the routines called by DsgeLikelihood).
2011-09-19 17:01:24 +02:00
Stéphane Adjemian (Scylla) 9c22fc1bde Removed globals from DsgeLikelihood. Still broken.
Added texinfo header in DsgeLikelihood.
2011-09-19 16:41:53 +02:00
Michel Juillard 50c085e5a3 using isequal while testing options_.mode_compute 2011-07-24 23:00:32 +02:00
Stéphane Adjemian (Charybdis) e097f7c8db Change options_.lik_init to default value if the fixed point of the Riccati equation cannot be found. 2011-06-28 14:49:56 +02:00
Stéphane Adjemian (Charybdis) fa9f6ac90b Added option lik_init=4. Initialization of the Kalman filter/smoother with the fixed point of the Riccati equation. 2011-06-23 23:39:15 +02:00
Stéphane Adjemian (Sedna) e8d40906d9 Bug fix. Added new exceptions (steady state with NaNs, M_.params with NaNs or complex numbers) in DsgeLikelihood. 2011-05-18 12:22:15 +02:00
Marco Ratto 7c92b2308a Small improvements around analytic scores and Hessian 2011-04-15 15:26:33 +02:00
Marco Ratto 25afd56163 Bug fixes around analytic scores for identification. 2011-04-12 18:18:18 +02:00
Marco Ratto 32eff62af6 1) provisions for analytic scores and asymptotic Hessian provided by Nikolai Iskrev
2) several fixes and improvements in dynare_identification.m:
   -) provide more info for strength of identification (relative to prior)
   -) more drastic warning off
   -) print info from ident_bruteforce.m
2011-03-18 11:05:40 +01:00
Houtan Bastani 43479f6ef3 use short-circuit ops (|| and &&) as opposed to (| and &) to avoid warnings in Octave (and save time) 2011-02-10 15:54:23 +01:00
Michel Juillard b247c329d8 replaced expressions X == 0 by more efficient and robust isequal(X,0) when X is a matrix
porting earlier changes from DsgeLikelihood.m to DsgeLikelihood_hh.
cleaning code
2011-02-09 06:23:27 +01:00
Sébastien Villemot 02652f6eb8 Updated copyright notices 2011-02-04 17:27:33 +01:00
Michel Juillard bff8de837b modifying dynare_resolve() calling sequence 2011-01-26 21:24:46 +01:00
Michel Juillard e2a1d77f6e - added schur_statespace_transformation.m to factor it out of DsgeLikelihood.m and DsgeSmoother.m
and corrected a bug in the code
- added missing functions missing_DiffuseKalmanSmootherH1_Z.m (multivariate version) and
                          missing_DiffuseKalmanSmootherH3_Z.m (univariate version)
- use only these two versions of the Kalman smoother in DsgeSmoother.m
2011-01-13 21:50:26 +01:00
Michel Juillard 6bb8d41909 Revert "- added a test an a penalty in estimation (DsgeLikelihood.m) if, in a stationary model (lik_init==1), a particular parameter set generates unit roots."
There is a better way of dealing with occasional non-stationary models in estimation

This reverts commit 8c0fb55206.
2010-12-22 09:40:39 +01:00
Michel Juillard 8c0fb55206 - added a test an a penalty in estimation (DsgeLikelihood.m) if, in a stationary model (lik_init==1), a particular parameter set generates unit roots.
- modified lyapunov_symm to return absolute value of unit roots in a third argument
2010-12-21 21:26:57 +01:00
Michel Juillard 7a09356423 DsgeLikelihood.m header correction: the function returns MINUS log posterior 2010-12-10 22:28:06 +01:00
Stéphane Adjemian (Charybdis) 3f1fad9cd2 Added trap for cases where diffuse filters fail (replaced error messages by warning messages). 2010-02-05 23:18:08 +01:00
sebastien 1be52aaa5f Beautification: removed tabulation characters which were left in previous beautification pass
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3300 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-05 10:46:10 +00:00
sebastien 502e3e1df8 Beautified MATLAB code (Unix newline convention + Emacs indentation), except: AIM, swz, particle
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3250 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-16 17:17:34 +00:00
stepan 4a0a0c1ab9 * Added an exit condition in DsgeLikelihood when the jacobian of the
dynamic model (evaluated at the steady state) is complex.
* Added case 6 inf print_info (complex steady jacobian).



git-svn-id: https://www.dynare.org/svn/dynare/trunk@2890 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-03 11:39:06 +00:00
stepan a089e59f3c dynare/trunk::
+ Added a  new option for likinit=2 used to define  the numbers on the
initial diagonal Pstar matrix.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2828 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-09 15:41:11 +00:00
sebastien 4e9b23363a Reorganized the way we deal with functions which exist under only some versions of MATLAB and/or some versions of Octave:
* Created a directory matlab/missing to store them under subdirectories
* Add the needed subdirectories to the path from dynare_config.m
* Moved content of matlab/matlab/ and matlab/octave/ to matlab/missing/*/
* matlab/missing/ordeig/ordeig.m: new name of matlab/my_ordeig
* matlab/missing/ordschur/ordschur.m: fake replacement, displays an error message
* Removed old matlab/matlab/ and matlab/octave/ directories


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2805 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-03 10:20:42 +00:00
stepan ec4b45cc7c Bug correction (condition info==19 was not used in DsgeLikelihood and DsgeVarLikelihood).
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2667 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-05-12 11:38:06 +00:00
stepan aa31417a05 Efficiency & Cosmetic changes related to the design of bayestopt_ and
the computation of the prior density.

bayestopt_.p1 is always the prior mean
bayestopt_.p2 is always the prior standard deviation
bayestopt_.p3 is unchanged
bayestopt_.p4 is unchanged
bayestopt_.p5 [new field] is the prior mode
bayestopt_.p6 [new field] is the first hyper-parameter of the prior density
bayestopt_.p7 [new field] is the second hyper-parameter of the prior density
 
These fields are defined in  set_prior and are never changed after. In
the previous version of Dynare,  the hyper parameters of the densities
were  updated at  each iteration  of the  optimization routine  or the
metropolis.

Removed fields pmean and pstdev.

Vectorized the code in priordens.

Fixed the bug mentionned by Gianni. If a (logged) density is evaluated
outside the  prior domain, the  output of priordens if  minus infinity
(instead of a complex number).


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2556 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-06 14:38:37 +00:00
stepan c42f33ff47 Bug fix + Cosmetic change. Do not compute the likelihood if the steady
state is complex.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2554 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-03 22:23:46 +00:00
stepan ba080ab910 v4.1:: Changes related to lyapunov_symm.
+ Fixed a bug introduced in the previous commit.
+ Added a threshold parameter for the complex blocks in the upper
triangular matrix T in lyapunov_symm.m (new field in options_)
+ Cosmetic changes.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2414 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-12 14:16:10 +00:00
sebastien 2495aca72a trunk:
* updated copyright headers of all files modified since January 1st: the copyright notice now encompasses 2009
* fixed various other copyright header issues


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2364 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-01-21 14:39:24 +00:00
michel 1aac4e7e0a fixing update issues for mode_compute=5,6
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2350 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-01-02 08:36:45 +00:00
michel eba6164cae fixing bugs around missing observations and starting to add smoother with missing observations
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2274 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-11-25 17:31:37 +00:00
adjemian 42e69283cb v4.1: Cosmetic changes + Added call to univariate kalman filter routine when F is singular and different
from zero.



git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2214 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-10-27 17:04:10 +00:00
michel ae0c71bfd9 correcting bugs in Kalman Smoother
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2198 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-10-26 20:10:58 +00:00
adjemian 38b2eb42cb v4.1: Added calls to new filter routines.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2187 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-10-21 16:31:13 +00:00
adjemian b820667698 v4.1: Changes related to kalman filter with missing observations.
* Adapted mode_check.m and hessian.m
 * Removed global from hessian.m
 * Changed call to metropolis
 * Changed the test deciding between KF and KF with missing observations in DsgeLikelihood

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2157 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-10-16 14:24:35 +00:00
adjemian 09e32240bd v4.1 Changes related to the kalman filter (for evaluation of the likelihood) with missing observations.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2155 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-10-16 13:40:40 +00:00
michel 63f5008305 v 4.0.2: simpler solution to problem with unobserved stochastic trends
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2149 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-10-13 20:08:13 +00:00