Commit Graph

242 Commits (943db6fb24d9e4b01f31d084696bb8aec9010ff4)

Author SHA1 Message Date
Stéphane Adjemian (Karaba) 567c5bcb1f Fixed bug in the initialization of the metropolis when mode_compute=6 was previously used (so that we have an optimal mh scale factor)
and option load_mh_file is used. After the (stochastic) optimization, the optimal value of the scale parameter is saved in a mat file.
2010-10-18 14:39:48 +02:00
Houtan Bastani a20bc07fdf replace deprecated Matlab function strvcat with char 2010-09-27 16:11:14 +02:00
Michel Juillard f6aace084b corrected bug in the sequence of tasks in dynare_esitmation_1 introduced in 29f9bb9 2010-09-13 21:35:08 +02:00
Stéphane Adjemian (Scylla) b16c56b71c Removed debugging informations display introduced in the previous commit. 2010-09-01 22:23:18 +02:00
Stéphane Adjemian (Scylla) 29f9bb953e Fixed bug related to the mh based approximation of the posterior covariance matrix (used
for the jumping distribution).
2010-09-01 22:15:47 +02:00
Michel Juillard 61aca0c915 renamed csminwel() to csminwel1() to avoid name clash with a different version used in SWZ 2010-07-28 15:26:56 +02:00
Stéphane Adjemian (Scylla) be1e0f1b8a Fixed bug for mode_compute=6 in Octave. Added an option to replace waitbar in matlab by
textbar (as in Octave). The user has to set options_.console_mode before the
estimation command. Cosmetic changes in gmhmaxlik (mode_compute=6).
2010-06-25 15:03:04 +02:00
Stéphane Adjemian (Scylla) 3aaccc59e3 Changes related to the new interface for the dsge-var models. 2010-06-24 12:53:10 +02:00
Marco Ratto 0f06026c85 1) No exception for mode_compute=5 when computing hessian;
2) bug fix;
2010-04-08 17:04:08 +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 6a2d2a7b46 smoother deals with all variables in M_.endo_names unless option SELECTED_VARIABLES_ONLY is used 2010-04-02 21:40:50 +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
Michel Juillard c963fb6c91 Merge branch 'master' of ssh://kirikou.dynare.org/srv/d_kirikou/git/dynare 2010-03-19 20:41:04 +01:00
Michel Juillard 40f1ab7548 computing smoother only for listed variables (start) 2010-03-19 20:40:49 +01:00
George Perendia 5efb7a7ddf added clause in dynare_estimation_1.m to avoid use of kalman smoother and diagnostics if options_.partial_information == 1 2010-03-19 19:17:38 +00:00
Stéphane Adjemian (Karaba) a828c3d2c1 Do not compute the harmonic mean estimator of the marginal density and various posterior
statistics if options_.mh_replic==0.
2010-02-11 14:26:30 +01:00
Stéphane Adjemian (Charybdis) 8878c10a75 Added a warning if the user put order>1 as an option in the estimation command. 2010-02-04 10:30:45 +01:00
stepan 696e8ee140 Added a new input argument (epsilon) in gradient routines and csminwel.m. This parameter defines the length of the steps considered
by numgrad routines to compute the gradient. The default value (defined in global_initialization.m) for this parameter is 1e-6. The
value of epsilon is stored in options_.gradient_epsilon.




git-svn-id: https://www.dynare.org/svn/dynare/trunk@3335 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-10 16:51:33 +00: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
sebastien a2cef7009d Fixes for ticket #57
preprocessor:
* add a field "M_.orig_endo_nbr" containing the nbr of endogenous before adding aux vars
* always provide "M_.aux_vars" (define it to "[]" when there is no aux var)
* rename "M_.aux_vars().orig_endo_index" to "M_.aux_vars().orig_index"

M-files:
* for commands which accept a list of variables (stoch_simul, osr, estimation, dynasave, dynatype, datatomfile), when no variable is given, use only the set of original endogenous (without aux vars) as the default
* when displaying the decision rule, when there is aux vars in the state variables, replace them by their original name (with the right lag)
* in "steady", don't display aux vars
* special exception for ramsey policy: all vars (including aux vars) are displayed, because the system of aux vars from ramsey policy is not compatible with the aux vars from the preprocessor


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3166 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-25 10:22:39 +00:00
stepan 98ac3091c9 Added a vector of indices for the state variables in the restricted state vector (bayestopt_.mf0).
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3132 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-06 14:03:50 +00:00
michel add652918e added possibility to call user defined optimizing routine with mode_compute option
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3023 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-06 14:40:49 +00:00
michel ce5c510d06 v4.1: add provision for <modfile>_steady_state.m and auxiliary variables for leads on more than 1 period
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3022 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-06 14:37:23 +00:00
michel 541129c1be v4.1: adding add_auxiliary_variables_to_steadystate.m and code to adjust output of <fname>_steadystate.m for additional auxiliary variables
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3014 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-02 12:10:50 +00:00
stepan a4d01dc31d dynare/trunk:: (dsge-var)
+ Added support for xls files.
+ Fixed a bug  appearing when the dafa file and the  mod files are not
in the same directory.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2827 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-09 15:03:11 +00:00
stepan 1c5e2df2a0 + Changed compute_moments_varendo so that it can handle prior montecarlo.
+ Bug fix.
+ Cosmetic changes.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2766 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-11 23:09:19 +00:00
michel 02c7b204d8 4.1: allow smoother computation when mode_compute=0
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2685 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-05-23 15:49:00 +00:00
stepan 3dc04fba5f Save intermediary results of the MH-based optimization routine.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2662 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-05-07 15:20:08 +00:00
michel aa843c739d 4.1: corrected estimation results tables with long parameter names
added function row_header_width.m


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2570 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-08 20:04:19 +00:00
michel 76080af7ec 4.1: dynare_estmation_1:
-removed saving of bayestopt_ in *_mode.mat
-added hooks for Gianni Lombardo's optimization routines

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2561 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-06 16:36:08 +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 be73652a97 If a dsge-var is estimated, the posterior IRFs are computed for all
observed endogenous variables. Merge Needed.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2503 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-03-21 22:36:18 +00:00
stepan e75b7f97ab v4.1:: Added an error message when minus the hessian matrix at the posterior
"mode" is not positive definite.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2416 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-12 17:40:26 +00:00
michel b0ea237ae3 another correction linked to cova_compute
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2408 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-08 16:53:40 +00:00
michel c231868f5b corrected bug in handling of cova_compute
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2406 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-08 15:14:48 +00:00
michel 47c51d42cc added option to compute covariance matrix of coefficient (default = 1)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2405 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-08 09:23:31 +00:00
michel 4d99d4521a removed mode saving when no computation takes place (added in previous modification)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2404 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-08 09:16:33 +00:00
michel 73873d7b2c estimation: save bayestopt_ in *_mode.mat file
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2403 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-07 11:26:14 +00:00
stepan 1a9bc8c10d v4.1::
+ Removed useless call to check_list_of_variables in dynare_estimation_1.m
+ Removed bayestopt_ global structure from draw_prior_density.m

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2392 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-04 10:44:54 +00:00
michel 5f148e90f4 adding PLOT_PRIORS option, no plotting is the new default
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2391 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-03 14:10:16 +00:00
michel d5a1a025d9 redo code for recursive estimation
corrected bugs with option prefilter, bayestopt_.mean_varobs is now a column vector

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2369 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-01-22 21:34:15 +00:00