Johannes Pfeifer
fe938c902a
Fixed another bug related to options_.optim_opt being now initialized as an empty array
...
Finalizes 392486273e
2015-03-01 13:34:39 +01:00
Stéphane Adjemian (Charybdis)
0bb413e8fa
Merge branch 'experimental-optimizers'
2015-02-24 20:44:39 +01:00
Stéphane Adjemian (Charybdis)
0ffb9dd6e2
Changed order of the input arguments in dynare_mimimize_objective.
...
It is more standard to have the name of the routine (defining the
objective to be minimized) as a first argument.
2015-02-23 14:35:41 +01:00
Stéphane Adjemian (Charybdis)
5865d46a74
Fixed bug. Wrong number of returned arguments when calling
...
dynare_minimize_objective (missing options_).
2015-02-21 18:14:15 +01:00
Houtan Bastani
f72910ae33
fix preprocessor implimentation of filter_algorithm option to estimation. closes #843
2015-02-09 03:20:37 +01:00
Johannes Pfeifer
dc7cfd3f0d
Adjust smoother to data now being a column vector
2014-12-08 11:28:46 +01:00
Johannes Pfeifer
dd6f8c182c
Move call to optimizers in mode-computing to separate file to allow other function to access all integrated optimizers
...
- also moves several options to subfields of options structure
- allows setting options of newrat
- requires newrat to have compatible kalman_algo specified in order for it to not change options_
- explicitly disallows using analytical derivation with numerical gradient (before the numerical gradient request was overwritten)
- always outputs hessian returned by optimizer (empty matrix if not computed) and deletes subsequent overwriting if cova_compute=0
2014-12-04 19:36:12 +01:00
MichelJuillard
8e9cd95a89
Merge pull request #760 from JohannesPfeifer/fix_smoother
...
Fix bug when calling non-Bayesian smoother after Bayesian estimation
2014-11-20 10:27:15 +01:00
Johannes Pfeifer
86cac40362
Harmonize field length for FilteredVariables for calibrated smoother
...
Analogous to 4f5e0321228c0e4aca19fcd114f26dbaa1bbbfaf
2014-11-16 21:11:06 +01:00
Johannes Pfeifer
4b1e815728
Always display value of posterior/likelihood at the mode
...
Also clarifies that minus the posterior/likelihood is displayed
2014-11-16 21:11:06 +01:00
Johannes Pfeifer
1cbb17f929
Make sure classical filtered variables have the same length as the Bayesian ones, i.e. nobs.
2014-11-16 21:08:18 +01:00
Johannes Pfeifer
7c59edead2
Make simplex_optimization_routine.m usable outside of estimation
...
Removes hard-coded parameter names extracted from bayestopt_ by handing them over explicitly
2014-11-10 19:53:55 +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
Johannes Pfeifer
2c01113e8c
Fix bug when calling non-Bayesian smoother after Bayesian estimation
...
Because xparam1 is used by the smoother, but xparam was set to the posterior mean, the non-Bayesian smoother results were based on the parameters at the mode, which are stored in xparam1.
2014-10-15 09:49:07 +02:00
Johannes Pfeifer
79c5e18bfe
Cosmetic changes
...
- Suppresses spurious output from dynare_estimation_1.m
- Removes unset output argument from dynare_estimation_init.m (which seems to be totally unused as it was not set at all and nobody reported any crashes)
- Corrects header of dynare_estimation_init.m
2014-09-19 16:20:43 +02:00
Johannes Pfeifer
8655df67a9
Clean up use of verbosity option
...
- in dr_block.m and ep_residuals.m the option was hardcoded and disabled
- for csminwel1.m, no verbosity option exists anymore, thus definitions preceeding calls to it were redundant as was the options_.osr.verbose
2014-09-12 10:33:37 +02:00
Stéphane Adjemian (Scylla)
576ed55dda
Merge branch optimizer_number_5.
2014-09-11 17:38:03 +02:00
Stéphane Adjemian (Scylla)
5e4b7d8d42
Added filter_algorithm (estimation command, sets the particle filter algorithm).
2014-09-08 22:36:41 +02:00
Marco Ratto
f346b734d9
when flag==0 (or options_.hess==0), we force to use the hessian from outer product gradient computed in optimizer == 5.
2014-08-07 17:49:04 +02:00
Stéphane Adjemian (Scylla)
afbd0bd47a
Cosmetic change (added white space).
2014-07-17 22:05:08 +02:00
Stéphane Adjemian (Charybdis)
03975f7d01
Fixed bug (wrong definition of rawdata).
2014-07-09 15:34:53 +02:00
Stéphane Adjemian (Scylla)
d727ba7246
Fixed bug (missing input).
2014-06-23 12:24:36 +02:00
Stéphane Adjemian (Scylla)
b11f6e2505
Adapted code for dsge-var models.
2014-06-23 10:55:08 +02:00
Stéphane Adjemian (Charybdis)
efcf6bd9c0
Use dseries object in the estimation routines.
2014-06-16 17:41:59 +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)
bb18c9386d
Fixed bug.
...
MCMC convergence diagnostics should be computed even if mh_replic is less than 2000, provided that the total number of iterations is greater than 2000 (if option load_mh_file is used).
2014-02-25 17:26:08 +01:00
Stéphane Adjemian (Scylla)
c57aa43ca8
Bug fix.
...
<M_.fname>_optimal_mh_scale_parameter.mat was not deleted if mode_compute>0.
2014-02-25 15:44:34 +01:00
Johannes Pfeifer
221660dfea
Fix capitalization error in dynare_estimation_1.m that leads to crashes if reached
2014-02-21 19:19:36 +01:00
Stéphane Adjemian (Scylla)
f8543c0a97
Fixed typo.
2014-02-21 12:23:36 +01:00
Stéphane Adjemian (Scylla)
2ee11fa860
Changed the handling of optimization options in dynare_estimation_1.m. Removed calls to strsplit. Closes #605 .
2014-02-03 12:25:29 +01:00
Stéphane Adjemian (Scylla)
63986a0ebf
Closes #567 .
2013-12-18 16:44:31 +01:00
Stéphane Adjemian (Scylla)
130125c5da
Changed the error message issued when the initial conditions for the estimated parameters are outside the bounds (the error message depends on the value of options_.prior_trunc).
2013-11-27 12:27:51 +01:00
Stéphane Adjemian (Scylla)
bd630d7210
Removed MC_record field from oo_ structure and the output argument from MCMC routines.
...
Details about the MCMC can be loaded in the workspace with the following command:
>> internals --load-mh-history <NAME_OF_THE_MOD_FILE>
under the name mcmc_informations, or printed in the command window, using the following
command:
>> internals --display-mh-history <NAME_OF_THE_MOD_FILE>
2013-11-26 12:56:41 +01:00
Stéphane Adjemian (Charybdis)
ad0c29262b
Cosmetic. Renamed DsgeVarLikelihood as dsge_var_likelihood.
2013-11-16 23:33:37 +01:00
Stéphane Adjemian (Charybdis)
9238523c26
If a DSGE-VAR is estimated, check that the user do not try to estimate/calibrate correlations between structural innovations and that there is no measurement errors. Closes #521 .
2013-11-16 23:26:19 +01:00
Stéphane Adjemian (Penelope)
0c00151092
Merge branch 'master' into remove-dynDate-class
...
Conflicts:
preprocessor/DynareBison.yy
2013-11-14 16:41:08 +01:00
Sébastien Villemot
ea6ee19402
More Octave compatibility fixes wrt catch
2013-11-08 16:35:52 +01:00
Sébastien Villemot
ecdbc42319
Fix error message when initial values of estimation are not suitable.
...
Ref #512
2013-11-08 16:09:16 +01:00
Sébastien Villemot
179af0e4ab
Octave compatibility fix: catch does not accept an argument
2013-11-08 15:02:30 +01:00
Houtan Bastani
0fdc18e7fb
Merge branch 'ifc'
...
Conflicts:
matlab/dynare_estimation_1.m
matlab/global_initialization.m
2013-11-06 13:58:57 +01:00
Johannes Pfeifer
b03697b342
Add possibility to initialize parameters from calibrated model
2013-11-06 13:50:46 +01:00
Stéphane Adjemian (Scylla)
8429321547
Merge branch 'master' into remove-dynDate-class
2013-11-06 12:43:06 +01:00
Sébastien Villemot
a72cc3ff48
Merge remote-tracking branch 'github/master'
2013-11-05 17:17:53 +01:00
Stéphane Adjemian
ead332ed97
Merge pull request #511 from JohannesPfeifer/Correlated_errors_preprocessor
...
Bugfixes for correlated shocks
2013-11-05 07:49:37 -08:00
Sébastien Villemot
8a6e23845b
Merge remote-tracking branch 'jpfeifer/mode_compute'
2013-11-05 16:20:04 +01:00
Johannes Pfeifer
fddee8e1db
Bugfixes for correlated shocks
...
Uses preprocessing capabilities introduced in 07137e804b
Fixes #392 and #494 . Also fixes a bug in the checking for positive definiteness of covariance matrices in likelihood functions
Allows for calibrated covariances by reading them out and setting them after covariance matrix has been reconstructed from correlation and variances.
Adds unit test
2013-11-05 15:55:29 +01:00
Johannes Pfeifer
0d669a73cb
Add options for providing the variances, an identity matrix , and user specified matrices as proposal densities
...
Deals with #507 and #112
Includes a unit test
2013-11-04 19:09:24 +01:00
Sébastien Villemot
1a8bba6393
Allow a custom function named 'prior' as a value for 'mode_compute' option
...
Closes #507
2013-11-04 15:42:59 +01:00
Stéphane Adjemian (Charybdis)
ddd95361ba
Cosmetic changes. Added isoctave function to replace exist('OCTAVE_VERSION').
2013-11-04 10:54:45 +01:00
Michel Juillard
b81159f12c
adding comments
2013-11-03 11:40:36 +01:00