Commit Graph

103 Commits (27886047cf1c889dab59ba6c56316aa56c56dbbf)

Author SHA1 Message Date
adjemian 27886047cf * Changed numgrad.m. If fcn(x+h) is not well defined (for instance cost_flag=0 because of BK conditions) we compute the gradient using (fcn(x)-fcn(x-h))/h instead of the original formula (fcn(x+h)-fcn(x))/h.
* Added function numgrad3.m. This new function uses a three point formula to compute the gradient. By default Dynare uses the two point formula. By setting options_.gradient_method=3 Dynare switches to the three point formula. Note that an input argument has been added to csminwel.
* Added automatic detection of needed constant in dsge-var model (may be problematic is some cases)

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1935 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-07 12:58:13 +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
michel d0b87d6c32 corrections to optimal policy code required by making M_, options_, oo_ and it_ local
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1914 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-02 07:42:50 +00:00
sebastien e08cad8265 v4: merged Octave branch into trunk
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1899 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-06-24 18:20:48 +00:00
sebastien 67d98a4a7b v4 matlab: removed useless asamin.m and added an error message for mode_compute=2
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1893 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-06-23 10:58:32 +00:00
adjemian 8ba344b786 Cosmetic change in var_sample_moments + Removed one global.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1880 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-06-17 21:44:00 +00:00
michel dfc1f3c90f dynare_v4: exploitation of posterior distribution (unfinished)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1877 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-06-16 10:38:36 +00:00
ratto 7c807afd65 filled SmoothedShocks field when
mode_compute=0 and and mode_file=0; 

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1867 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-06-12 10:10:50 +00:00
sebastien b45d5ac3e0 v4 dynare_estimation.m: fixed bug in saving pindx
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1864 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-06-09 16:01:49 +00:00
sebastien e4be1577cc v4 dynare_estimation.m: added missing semicolon
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1862 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-06-09 09:57:05 +00:00
ratto 442a212d28 Added empty case for filter_step_ahead;
Fixed bug with bounds, when prior bounds are outside from lb and ub specified manually by the user;

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1801 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-04-14 10:17:31 +00:00
michel b67c5f596a v4 : dynare_estimation.m: corrected bug with load_mh_file
simplified calls to random_walk_metropolis_hastings()


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1755 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-03-30 08:33:59 +00:00
adjemian 8917d41046 Added multivariate student as a proposal distribution for the metropolis hastings.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1743 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-03-13 08:27:55 +00:00
michel 01f71a285a v4 dynare_estimation.m: corrected spelling bug with TeXNAMES
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1739 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-03-10 08:16:01 +00:00
adjemian f489bc62d0 Correction of a bug related to the stochastic optimization routine (mode_compute=6).
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1722 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-29 14:02:43 +00:00
michel a430b447d1 v4 dynare_estimation.m: corrected bugs when np == 0
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1721 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-27 09:15:30 +00:00
michel 7073ee2ee1 v4 dynare_estimation.m: foecast are prepared only when kalman_algo > 4
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1716 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-20 13:13:36 +00:00
michel bcf9da214e v4: added forecast out of posterior mode (or maximum likelihood, non-tested)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1710 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-17 14:58:34 +00:00
michel c7dc3ca3bc v4 bug corrections in dealing with measurement errors
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1708 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-16 17:02:39 +00:00
michel 806c29cc4a v4: made dynare_estimation safe for computing Smoother of a calibrated model (temporary)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1702 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-09 17:27:26 +00:00
michel 6057511c9e v4 dynare_esitmation.m: doesn't store lagged values of smoothed and filtered variables
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1694 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-02-05 15:27:57 +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 cd1918ca89 v4 dynare_estimation.m: bug correction for models with nonstationary variables
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1646 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-01-26 08:22:30 +00:00
assia 8ac397daa2 header updated
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1548 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-01-10 14:36:09 +00:00
adjemian c14493361b Added estimation of bvar-dsge models with constant.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1441 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-11-14 17:42:18 +00:00
michel a82c653ab2 v4 matlab: removed empty () for compatibility with older version of Matlab
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1439 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-11-09 10:22:08 +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 daef6d60b6 Correction of a bug related to BVAR-DSGE. After the estimation of the DSGE posterior mode, dynare was computing the hessian matrix associated to the BVAR-DSGE...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1369 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-13 14:55:21 +00:00
adjemian 269329cac2 Corrections for bvar-dsge estimation and irfs.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1341 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-06 08:43:25 +00:00
adjemian 254a2df272 Correction of a bug in bvar-dsge estimation.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1338 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-05 12:32:28 +00:00
adjemian d1820cd778 Correction of a bug related to mode_compute=6 (displayed progress information was wrong).
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1328 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-06-22 14:35:56 +00:00
michel fd8ebccfbc v4 dynare_estimation: added call to PosteriorMomentsVarendo (not yet completed)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1320 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-06-17 13:01:02 +00:00
adjemian 0fa73bb1f3 Set the parameters to the posterior mean after a metropolis.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1317 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-06-16 08:52:53 +00:00
michel 708f2b992b v4 dynare_estimation.m: parameters must be set before computing the steady state
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1290 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-05-20 09:21:15 +00:00
adjemian fc4e25adec M_ is saved with oo_ in _results.mat
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1286 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-05-19 16:58:55 +00:00
ratto a57ca32ce8 Enabled PosteriorSmoother.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1250 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-04-16 15:47:28 +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
adjemian 0448da2649 Bug fixes (BVAR-DSGE)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1181 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-02-09 16:30:47 +00:00
adjemian 44093cbbb9 BVAR-DSGE with constant (not yet ready)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1167 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-01-26 14:50:30 +00:00
adjemian ee75bf6a58 load oo_ from _results.mat if mh_replic = 0 and load_mh_file
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1165 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-01-26 08:58:07 +00:00
adjemian 863680fb4d yet another bug correction
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1164 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-01-24 13:29:14 +00:00
adjemian ee4ced27b0 git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1163 ac1d8469-bf42-47a9-8791-bf33cf982152 2007-01-22 18:58:37 +00:00
adjemian eed9b1b335 git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1162 ac1d8469-bf42-47a9-8791-bf33cf982152 2007-01-22 18:11:34 +00:00
adjemian a5b243b32c Bug correction related to the case where mh_replic=0 and load_mh_file=1 (oo_ is saved after marginal_density.m and GetPosteriorParametersStatistcs.m)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1160 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-01-22 16:32:36 +00:00
adjemian 8de9d8b5cb initialization of options_ in global_initialization.m.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1159 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-01-22 16:22:29 +00:00
adjemian c5b8c596f2 do not compute the marginal density (harmonic mean estimator) when mh_replic = 0 and load_mh_file = 1
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1156 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-01-22 13:33:59 +00:00
adjemian 47ae595059 Bug corrections : TeX output, oo_ structure (posterior density), posterior IRF.
Added : Posterior IRFs for BVAR-DSGE, conditional forecasts

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1119 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-15 11:37:24 +00:00
michel 9337cdef34 v4 dynare_estimation.m: corrected bug in bayestopt_.restrict_var_list_nonstationary
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1114 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-01 20:46:51 +00:00