Commit Graph

93 Commits (beb7d42d748f9f0f5216ed7aca93dceb4f73df2c)

Author SHA1 Message Date
Stéphane Adjemian (Scylla) 7be8f10e0e Use cells of strings instead of char arrays. 2018-01-09 22:30:01 +01:00
Johannes Pfeifer ce4d8c3544 Cosmetic fix to error message 2017-11-28 10:27:43 +01:00
Johannes Pfeifer 818a07a4ef Fix get_posterior_parameters
Get rid of setting variables from the base workspace in the function, making the function read-only (as the name suggests)
2017-10-05 09:54:08 +02: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
Marco Ratto be758613f4 fixed bugs that prevented the computation of the asymptotic Hessian with ML. 2016-06-19 11:09:59 +02:00
Johannes Pfeifer f5c08fc0e8 Create LaTeX output for Smirnov tests 2016-06-14 11:52:49 +02:00
Johannes Pfeifer 73ec852433 Deal with required naming after allowing for correlations in identification in #1200 2016-06-14 11:52:17 +02:00
Johannes Pfeifer 00cdc05d58 Pass title texts to ident_bruteforce.m to make sure that previous TeX output is not overwritten by advanced option 2016-06-14 11:52:17 +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
Johannes Pfeifer 0e2e1376c9 Fix bug in simulated moments
Closes #1105
2016-05-18 22:51:20 +02:00
Marco Ratto 42170c6c13 Fixes around models with unit roots. 2016-05-17 11:47:07 +02:00
Houtan Bastani ccb197e74f fix copyright dates 2016-05-09 12:42:58 +02:00
Marco Ratto 8b54354a27 Make identification compliant with calibration parameter set [bug fix] 2016-05-05 16:08:14 +02:00
Stéphane Adjemian 313ffb5f32 Merge pull request #1116 from JohannesPfeifer/Latex_cosmetics
Various improvements to LaTeX output
2015-12-15 17:22:00 +01:00
Stéphane Adjemian (Charybdis) 29a0765a48 Removed globals from prior_draw routine.
When initializing the persistent variables, bayestopt_ and
options_.prior_trunc need to be passed as input arguments.
2015-12-14 23:50:56 +01:00
Johannes Pfeifer 4f9b141c76 Add eps-loaders to identification codes 2015-12-14 11:26:33 +01:00
Johannes Pfeifer 0f50f33c2c Initialize M_.dname=M_.fname in global_initialization.m
Closes #979
2015-07-28 15:23:53 +02:00
Johannes Pfeifer d09bf195c9 Make sure diffuse_filter option is correctly passed in dynare_identification.m
Closes #677
2015-06-05 16:39:17 +02:00
Marco Ratto e3ac15458a Properly deal with dseries in identification. This fixes #781 2014-11-18 11:34:49 +01:00
Johannes Pfeifer 4c6aad3d2d Fix bug in dynare_identification.m that led to missing output and crashes if the initial parameterization was invalid
If the initial parameters did not solve, the code for displaying results and saving was not reached. The also led to later crashes with saving as the -append option was used and no file existed. If no valid draw can be found, the function exits in any case, so no additional check is needed.
2014-07-23 12:10:00 +02:00
Stéphane Adjemian (Scylla) d5e873f01f Fixed bug (missing argument). 2014-06-27 18:40:09 +02:00
Stéphane Adjemian (Scylla) 7e862ae72a Fixed bug (forgot some calls to identification_analysis). 2014-06-18 15:37:13 +02:00
Stéphane Adjemian (Charybdis) 42c4aabdcc Adapted identification routines. 2014-06-17 12:04:58 +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
Johannes Pfeifer 3ee033ab10 Cosmetic Changes to figure names in identification 2014-03-10 20:57:29 +01:00
Marco Ratto 67d7ba75f0 1) Define a new type of parameter Random_prior_params, when prior/posterior mean mode do not work and the code searches randomly in the prior space a parameter combination that provides unique saddle path solution;
2) save point estimates in separate file, in order not lose work when subsequent analyses are done for prior/posterior mean/mode etc.
2013-12-10 11:05:54 +01:00
Marco Ratto d969a8129c Trap the case where only one parameter is estimated and only one non-constant row is available in Jacobian: (1) do not use vnorm; (2) do not use advanced option.
(cherry picked from commit d9856879ea4d9a7d9e954cc9392d1f0e98634cda)
2013-12-06 08:21:10 +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
Stéphane Adjemian (Charybdis) ddce110bf2 Merge branch 'master' into use-dynSeries 2013-09-10 22:26:12 +02:00
Stéphane Adjemian (Charybdis) 952139bbc9 Changes related to the treatment of the (optionally) provided mode file.
(1) Added more checks on the content of the provided mode file compared the the list of declared parameters (the condition on the number of parameters is not strong enough).

(2) Added a mechanism to adapt the content of the mode file if possible. For instance, if the estimated parameters are a subset of the parameters in the mode file, we only need to discard some of the parameters in the mode file.

(3) Added output argument in dynare_estimation_init, which returns the hessian matrix (hh) with the estimated mode.
2013-09-10 22:25:16 +02: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) 4052d4ccaf Cosmetic changes. Use skipline() instead of disp(' '). 2013-07-10 17:12:34 +02:00
Sébastien Villemot 61485ab809 Fix copyright notices 2013-06-12 17:04:46 +02:00
Marco Ratto 22e0b9cc3d 1) fixed bugs when no estimated parameters are declared;
2) fixed bug for the ML base (bayestopt_.pshape==0);
3) make more transparent the error when the model does not solve at prior_mode or  prior_mean;
4) when prior_mean or prior_mode fail, try 50 times with randomly generated samples from the prior before interrupting identification.

This commit fixes issues related to fabiac forum request and subsequent discussion with Johannes.

http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=4402&p=10771&hilit=identification&sid=64c6f9d987a2641e79dd5722137eb483#p10771
2013-03-19 16:56:10 +01:00
Marco Ratto e835c7d945 Bug fix: graphic options are not passed to global options_ (for the next release try to skip the use of the global here). 2012-10-02 08:59:49 +02:00
Houtan Bastani 12af7298ef ms-sbvar: remove unused field removal statements (and set options_.datafile='' in global_initialization) 2012-09-27 15:32:33 +02:00
Marco Ratto a7ba2b51e7 Trap error when the model does not solve for point estimation (prior mean-mode posterior mean-mode) 2012-08-24 17:09:13 +02:00
Marco Ratto 80a9ac90f0 Fixed random bug of MC identification test, occurring when there is no solution at the very first iteration of the MC loop.
(cherry picked from commit 906bf8e02feb8370153bc6407bf95d2592be3cc2)
2012-07-15 22:21:10 +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
Marco Ratto 98c809c54e Further on nograph: moved printed output when advanced=1 from plot_identification to disp_identification. 2012-06-15 13:45:26 +02:00
Marco Ratto fd24b93667 fixes around options nograph and nodisplay 2012-06-15 13:07:26 +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 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
Johannes Pfeifer 4c255cf2ae Starts implementing Ticket 216. Most plotting and figure is now controlled by the functions dyn_figure and dyn_saveas, allowing for option_.nodisplay to suppress the displaying of figures and using options_.graph_format to control the format of saved figures. 2012-04-25 11:47:40 +02:00
Marco Ratto d4723038be 1) fixed infinite loop
2) fixed names of sylvester functions
2012-04-04 16:43:44 +02:00
Marco Ratto 3ca9485edd bug fix when calling gsa
set default order=1
set analytic derivation =1
2012-04-04 10:35:18 +02:00
Michel Juillard 7408714ea1 added dname as argument to CheckPath function and changed all calls to
this function. Suppressed use of globals in CheckPath.
2011-12-15 17:35:27 +01:00