Stéphane Adjemian (Charybdis)
c4f1958690
Cosmetic changes + Copyright headers fixes.
2018-01-26 12:00:27 +01:00
Marco Ratto
cf8213f7a0
fix to the Kitigawa transformation that allows to reduce the computing time of the likelihood in large models, with a lot of static variables, by 30-50%.
...
This fixes the bug in e97e5c3407
that led to 2f9dc09285
It is tested and completely fixes the issue highlighted in #1312 .
2018-01-26 11:47:39 +01:00
Johannes Pfeifer
ce4d8c3544
Cosmetic fix to error message
2017-11-28 10:27:43 +01:00
Stéphane Adjemian (Charybdis)
5417b27ac7
Fixed indentation of matlab files.
2017-05-16 15:10:20 +02:00
Stéphane Adjemian (Charybdis)
a53636e24e
Fixed copyright notices.
2017-05-16 14:11:15 +02:00
Stéphane Adjemian (Charybdis)
88e1701289
Removed useless commas and semicolons.
2017-05-16 13:24:46 +02:00
Stéphane Adjemian (Charybdis)
c1b6a58eb7
Manually revert 05fc096569
.
...
Robust prediction error covariance matrix computation is now optional (with
rescale_prediction_error_covariance option).
Closes #1437 .
2017-04-27 10:44:27 +02:00
Stéphane Adjemian (Charybdis)
dbffe2a841
Do not check boundaries if the model is not estimated.
2017-03-16 15:50:44 +01:00
Stéphane Adjemian (Charybdis)
5b73d7d59c
Added new optimization routine (particleswarm).
...
Only available under Matlab if the Global Optimization Toolbox is installed.
2017-02-08 13:07:25 +00:00
Johannes Pfeifer
2c5b1fed2d
Use master function lyapunov_solver.m to call individual solvers
2017-01-04 11:25:44 +01:00
Michel Juillard
42acb96b3d
renamed compute schur_statespace_transformation.m
...
refactored code
2016-11-22 18:40:10 +01:00
Stéphane Adjemian
4532d13fd3
Merge pull request #1295 from JohannesPfeifer/stochastic_singularity
...
Stochastic singularity
2016-11-04 10:56:50 +01:00
Johannes Pfeifer
4502369617
Fix typo in comment of dsge_likelihood.m
2016-10-27 17:15:24 +02:00
Johannes Pfeifer
2fe73fafdc
Implement and document keep_kalman_algo_if_singularity_is_detected option
2016-10-02 12:56:28 +02:00
Johannes Pfeifer
582bcb7a8e
Add missing Ramsey error code to dsge_likelihood.m
2016-08-24 13:32:11 +02:00
Johannes Pfeifer
75e52ed71d
Make sure fast_kalman_filter is only used with diffuse_periods=0
...
Closes #1234
2016-08-22 19:24:35 +02:00
Johannes Pfeifer
178bf4165c
Make sure Zflag for augmented state space is correctly set when measurement error is correlated
2016-08-22 19:24:35 +02:00
Johannes Pfeifer
7c96e22985
Fix bug in dsge_likelihood.m where diagonal of measurement error covariance matrix was not correctly read out
...
This is a prerequisite for the univariate filter that operates along a vector for H instead of along the diagonal. Because of this, the likelihood in the presence of measurement error was wrong
2016-08-22 19:24:35 +02:00
Johannes Pfeifer
bffea9b426
Fix error code for inf-likelihood
2016-08-22 19:24:35 +02:00
Johannes Pfeifer
15f95cec4a
Add comments to Kalman filtering routines
2016-08-22 19:24:35 +02:00
Johannes Pfeifer
39e7c39243
Filter out infinite likelihoods
2016-08-22 19:24:35 +02:00
Johannes Pfeifer
72b8c650e5
Add missing logical operator from likelihood functions introduces when removing global penalty
2016-07-18 11:11:43 +02:00
Johannes Pfeifer
0c00e28799
Remove objective_function_penalty_base
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
Marco Ratto
d8fea3ff13
Correlations and measurement errors in identification:
...
1) Filter out measurement errors with error message that suggests to explicitly write measurement errors in model definition
2) allow identification checks with correlations, by switching to numerical derivatives
2016-05-22 23:10:01 +02:00
Houtan Bastani
25121bca4f
fix copyright dates
2016-05-04 16:05:31 +02:00
Stéphane Adjemian (Lupi)
fd850ca5bd
Merge branch 'master' into lik_init_5_fixes
...
Conflicts:
doc/dynare.texi
tests/Makefile.am
2016-03-24 17:40:27 +01:00
Johannes Pfeifer
1c816aef24
Various interrelated bugfixes dealing with detrending
2016-03-23 10:19:40 +01:00
Johannes Pfeifer
f28a7a62bb
Only test non-zero measurement error covariance entries for positive definiteness
...
Otherwise, not having measurement error on one variable is not allowed during estimation
2015-12-15 22:37:08 +01:00
Michel Juillard
c373d1e1be
adding new option 'fast_kalman_filter' implementing Ed Herbst 2012 approach
2015-11-28 17:38:00 +01:00
Stéphane Adjemian (Charybdis)
5bccacaaa5
Fixed lik_init=5.
...
Missing initialization for the vector of state variables (a) and Zflag.
2015-11-04 22:33:15 +01:00
Stéphane Adjemian (Charybdis)
fe0f19dc37
Fixed bug. Wrong size of the state vector...
...
When dsge_likelihood enters (because of of a detected singularity) in
univariate_kalman_filter routine with correlated measurement errors.
2015-10-22 16:10:34 +02:00
Johannes Pfeifer
a7ed27b889
Document lik_init=5 and add unit test for lik_init
2015-10-18 18:55:33 +02:00
Marco Ratto
0aa7e15d58
- Once Schur stape space transformation is done, map immediately Pinf and Pstar onto the original variablesm to avoid propagation of errors related to multiple unit and zero eigenvalues.
...
- ensure that smoother and filter get the same Pstar and Pinf in diffuse steps
2015-10-13 17:26:39 +02:00
Johannes Pfeifer
d513d38f73
Filter out failure of k_order_pert in likelihood computation
2015-10-11 17:55:27 +02:00
Michel Juillard
f7f158f078
Revert "removed global objective_function_penalty_base"
...
This reverts commit 5ade8d7c6f
.
2015-10-09 14:23:32 +02:00
Michel Juillard
784b8d893c
Revert "reducing penalty value to 0.1 when there is no ground to make it proportional"
...
This reverts commit a6f123fd50
.
2015-10-09 14:23:32 +02:00
Michel Juillard
035adeb89e
Revert "More fixing related to objective_function_penalty_base"
...
This reverts commit 1ad8df4635
.
2015-10-09 14:23:31 +02:00
Michel Juillard
1ad8df4635
More fixing related to objective_function_penalty_base
2015-10-08 20:57:00 +02:00
Michel Juillard
a6f123fd50
reducing penalty value to 0.1 when there is no ground to make it proportional
2015-10-08 20:57:00 +02:00
Michel Juillard
5ade8d7c6f
removed global objective_function_penalty_base
...
added penalty_objective_function.m and penalty_hessian.m
2015-10-08 20:57:00 +02:00
Stéphane Adjemian (Charybdis)
d125c2effc
Fixed bug (wrong syntax for switch, case 5).
2015-08-27 11:37:07 +02:00
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
86322bcb3a
Fix typo in dsge_likelihood.m
...
blkdiag command is not written with ck
2015-07-20 13:10:31 +02:00
Johannes Pfeifer
d6bc85fdc6
Improve error message for incompatible filter/Kalman option
2015-07-20 13:06:22 +02:00
Marco Ratto
e2b59630c1
diffuse_kalman_tol not properly triggered
2015-05-07 10:18:55 +02:00
Marco Ratto
ca8f0ea006
Harmonize filters/likelihood with smoothers by using new option diffuse_kalman_tol
2015-04-08 15:49:12 +02:00
Marco Ratto
214dc74723
- Fixed bugs around analytic derivation.
...
- Fixed test routine, eliminating diffuse filter.
- Trapped incompatibility of diffuse filter with analytic derivation.
2015-04-01 09:00:51 +02:00
Johannes Pfeifer
bda19832cd
Integrate error from negative steady state with loglinear model into print_info.m
...
Prevents crashes during estimation. Instead of directly crashing, error handling is done via print_info.m so that penalizing the error during estimation is possible
2014-12-04 20:04:36 +01:00
Stéphane Adjemian (Karaba)
f48566aeae
Fixed prior bounds (according to the doc in master branch).
...
* Second and third positional arguments after the name of the
estimated parameter in the estimated_params block are only
considered in the optimization stage (not in the MCMC)
* Do not store bounds in bayestopt_, because bounds do not always
reflect restrictions implied by prior shapes.
* prior_bounds routine returns a structure (with fields lb and ub)
instead of a matrix.
2014-10-20 16:18:54 +02:00