Johannes Pfeifer
0fd76e0c6f
Assigning unique function for each input argument of lyapunov_symm.m
...
The old way of redefining input arguments to satisfy different options was too error-prone. See 69daaa0460b0ddee97292c39d40355201e316622 of tholden
2015-07-22 15:11:39 +02:00
Johannes Pfeifer
22b1aa7a0d
Filter out case where estimated_params block is present but smoother on calibration is requested
...
In this case, xparam1 will be empty while estim_params_ does not have conformable dimensions.
2015-06-09 14:51:32 +02:00
Stéphane Adjemian (Charybdis)
6aa5ceabb2
Fixed bug introduced in 363c4a61222103fda22adff9bdb1115a6073428a.
2015-04-03 18:02:03 +02:00
Stéphane Adjemian (Charybdis)
090c4fedbd
Added new option (diffuse_kalman_tol) and fixed tolerance paremeters in diffuse smoother routines.
2015-04-03 18:02:03 +02:00
Marco Ratto
7c838b133f
Use local variables for restrict var list, to avoid overwriting the global and messing likelihood evaluations later on.
2015-04-03 18:02:03 +02:00
Johannes Pfeifer
ed8b47bbf4
Add info to header about additional output argument
2014-12-11 20:59:31 +01:00
Stéphane Adjemian (Karaba)
97b63105a0
Add a parameter to the lyapunov_symm routine (debug mode).
2014-10-13 17:42:53 +02:00
Johannes Pfeifer
b90f3deed2
Bugfixes and improvements related to method 3 of lyapunov_symm.m
...
- the function was called with the wrong input argument for this case (Q instead of R*Q*R'), crashing with incompatible matrix dimensions
- the persistent variable X was not updated when the size of it changed, leading to crashes when estimation is followed by calls to DsgeSmoother.m where the state-space is different
- Also eliminates the printed output in lyapunov_symm.m that could not be turned off and clutters estimation
2014-10-13 17:42:52 +02:00
Stéphane Adjemian (Scylla)
7b089ec2b3
Cosmetic change. Renamed nobs as vobs.
2014-07-17 22:05:07 +02:00
Stéphane Adjemian (Scylla)
66d08ac3bf
Merge branch 'master' into use-dynSeries
...
Conflicts:
matlab/dynare_estimation_init.m
matlab/global_initialization.m
matlab/prior_posterior_statistics.m
matlab/read_variables.m
matlab/set_prior.m
matlab/utilities/dataset/initialize_dataset.m
preprocessor/ComputingTasks.cc
2014-04-30 10:10:30 +02:00
Stéphane Adjemian (Scylla)
8359b90cdf
Cosmetic changes.
2014-01-30 13:00:25 +01:00
ferhat
4e789452b2
Allows to use alternative algorithms to solve lyapunov equation
2014-01-14 17:32:01 +01:00
Stéphane Adjemian (Charybdis)
907e087ea9
Consider options_.varobs as a cell of strings.
2013-09-07 16:39:04 +02:00
Stéphane Adjemian (Charybdis)
e60d438e86
Fixed bug.
2013-06-28 16:59:47 +02:00
Stéphane Adjemian (Charybdis)
b281830983
Added new initialization mode ofr the Kalman filter and smoother.
2013-06-28 16:26:53 +02:00
Sébastien Villemot
1f9cea669a
Update copyright notices
2012-06-08 18:22:34 +02:00
Stéphane Adjemian (Charybdis)
0da05ae29d
Removed globals from set_all_parameters routine.
2012-06-07 15:13:39 +02:00
Michel Juillard
0b0c939849
fixing bug with smoother with univariate filters
2011-11-02 14:02:12 +01:00
Stéphane Adjemian (Scylla)
013c599ec9
Removed globals from dynare_resolve. Removed unused first input argument. Adapted routines calling dynare_resolve.
...
Added texinfo header to dynare_resolve.
2011-09-19 16:41:53 +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
Michel Juillard
78d882900a
more bug corrections in smoother routines
2011-03-25 21:32:45 +01:00
Michel Juillard
5f8b5fa467
removing useless 'd' output argument from the Kalman smoother functions. Removed global initialization of options_.diffuse_d. Fixed minor bugs in Kalman smoother functions.
2011-03-24 18:38:01 +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
Sébastien Villemot
757a9067c0
Global reindentation of MATLAB files
2011-02-04 17:17:48 +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
32bf5e9a0e
Diffuse smoother: bug correction when singularity occurs
2010-10-04 21:59:22 +02:00
Michel Juillard
3db736f31d
corrected bugs in estimation of models with measurement errors
2010-08-06 17:54:56 +02:00
Michel Juillard
f85049e9a6
removed oo_.smoother.integration_order
...
removed integration_order (d) from the output arguments of DsgeSmoother. It is still computed by a few Kalman smoother routines. I don't change them now as they need to be rewritten soon.
2010-04-03 08:00:22 +02:00
Michel Juillard
7668bc4a11
-new smoother function kalman/smoother/kalman_smoother.m
...
-fixing bugs in dynare_estimation_1.m
2010-03-23 18:17:15 +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
ratto
b8f5e80099
Matches new output list for
...
missing_DiffuseKalmanSmoother3.m
and
DiffuseKalmanSmoother3.m
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2969 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-24 12:44:33 +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
af9d1fbb6a
Bug fix. The DsgeSmoother was crashing when M_.exo_nbr=1. Added a new function that generalizes the matlab's squeeze
...
function (the problem is that squeeze does not affect 2D arrays).
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2543 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-01 10:04:53 +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
706651641f
adding missing data smoother + small corrections
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2278 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-12-01 12:50:53 +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
michel
3d410b9b8b
v4.1: corrected DsgeSmoother.m for unobserved trends
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2219 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-10-27 19:47:22 +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
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
ratto
2ff703ca40
Fixes to avoid error on non-stationary variables not observed.
...
This works on a rather complex model, with 4 RW trends and 80 equations (QUEST III). Hopefully ...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2141 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-10-09 07:21:43 +00:00
michel
fc4b201e79
correcting typo in writing estim_params_
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2103 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-09-24 10:09:26 +00:00
michel
68d00f20d9
bugs correction in diffuse filter
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2064 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-09-14 12:14:31 +00:00
george
8a5450638d
Commenting out a line as a temporary fix for a missing function filtered_values:
...
> Error in ==> DsgeSmoother at 253:
> oo_.NewFilteredVariables = QT*filtered_values(data1,ahat,P,T,Z);
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1986 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-08 07:37:01 +00:00
sebastien
db50368418
v4 matlab: fixed some existing copyright headers (and some other minor header issues)
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1974 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-01 12:40:33 +00:00
michel
c9cf49e30b
options_.nk default is now set to 1
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1963 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-26 14:15:21 +00:00
sebastien
e8d6dd1ef3
v4 matlab: use my_ordeig instead of ordeig for Octave and for Matlab < 7.0.1
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1938 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-07 21:48:12 +00:00
michel
fe54c7ca07
adding functions and fixing bugs for diffuse filter
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1924 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-02 12:53:24 +00:00
michel
2c8a9d2f60
cleaning diffuse algorithms
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1922 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-02 11:48:14 +00:00
michel
a148c0a3f1
undoing changes
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1919 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-02 11:38:44 +00:00
michel
36f264a1ca
put back DsgeLikelihood_hh.m that is used by option 5 of the optimizer
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1918 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-02 11:15:19 +00:00
adjemian
341adad2e9
Added new functions for posterior distribution processing (second order moments) + Removed global variables.
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1890 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-06-21 08:33:31 +00:00
michel
6352e90b26
v4: fixed bug concerning handling of filter decomposition (decomp) in DiffuseKalmanSmoother1_Z. and DsgeSmoother.m
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1814 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-05-01 15:41:15 +00:00
assia
681bf0fe4b
header updated
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1733 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-03-03 11:10:16 +00:00
michel
2f3767d317
v4: more changes related to new filter
...
more variables returned by the smoother saved in oo_
DiffuseKalmanSmoother1_Z.m isn't finished yet
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1689 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-04 17:52:16 +00:00
michel
4443d56136
v4 bug correction and correct smoother for new diffuse algorithm
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1682 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-01-30 21:32:20 +00:00
michel
7a87a7b200
v4: corrected bug in handling of trend_coeff
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1402 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-01 09:39:32 +00:00
michel
f3375020fc
v4: bug in handling of options_.trend_coeffs
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1399 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-09-27 15:35:40 +00:00
adjemian
a53e4db7ab
Correction of a bug in the estimation of smoothed variables (occasionaly systematic error in the level).
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1391 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-09-21 16:22:16 +00:00
adjemian
e7a65da202
DsgeSmoother() returns the state equation + documentation.
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1249 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-04-15 14:21:11 +00:00
michel
4e1122f014
v4: merge changes to dynare_estimation.m
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1183 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-02-11 12:48:41 +00:00
michel
4691f6d1c6
v4: restricted state debugging
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@921 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-09-18 19:36:10 +00:00
michel
21f989819e
v4: reduced state space for likelihood computation
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@781 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-06-03 19:45:05 +00:00
michel
a8e01d23bf
v4: further corrections
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@678 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-03-13 10:57:01 +00:00
michel
00fac4544c
v4 updating computing statistics from Metropolis (not finihesd)
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@655 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-03-05 21:01:27 +00:00
michel
742df69762
v4 added M.Ratto's change to diffuse filter/smoother and optmizer
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@641 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-03-03 13:13:00 +00:00
michel
b14188d039
correction setting of parameters
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@446 ac1d8469-bf42-47a9-8791-bf33cf982152
2005-09-11 09:38:52 +00:00
michel
9a9872fd33
dynare_v4 from CVS
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@8 ac1d8469-bf42-47a9-8791-bf33cf982152
2005-02-18 19:54:39 +00:00