Commit Graph

117 Commits (7a93a8cda82a4f0604ad390a038875ca2170ec33)

Author SHA1 Message Date
michel 7a93a8cda8 correcting r2131 for saving additional variables in oo_
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2133 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-10-03 09:09:22 +00:00
michel 57240cf01e modified computation of log(det(invhess)) to solve cases in large models where det(invhess) is smaller than machine precision
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2132 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-10-03 08:43:28 +00:00
michel f4e7a003eb corrected bug related to saving oo_.FilteredVariablesKStepAheadVariances and oo_.FilteredVariablesShockDecomposition
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2131 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-10-02 14:36:12 +00:00
sebastien 1d4f437499 trunk: merged 2106 changeset from 4.0 branch (typo in dynare_estimation.m)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2109 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-09-24 20:00:07 +00:00
sebastien 0ee09b5b07 v4.1: merged r2044, 2045 and 2046 changesets from 4.0 branch
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2047 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-09-05 16:48:39 +00:00
sebastien fa0a9f2784 v4.1: merged r2042 from 4.0 branch
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2043 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-09-05 15:03:03 +00:00
michel 7785819203 - updated dynare_m.exe (for old changes, unrelated to current modifications)
- added missing smoother function (DiffuseKalmanSmootherH3corr_Z.m is still missing)
- added computation of updated variable in smoother functions
- used same names for variables computed by smoother when results are only for posterior mode or for all posterior distribution

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2032 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-09-04 01:25:02 +00:00
adjemian 2845115b5f + Removed global variables.
+ Added try and catch to handle cases where oo_ is broken and (mh_replic==0 & load_mh_file==1).
+ Added computation of posterior moments for endogenous variables (triggered by moments_varendo option). First order moments are still missing.

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2028 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-09-03 16:05:35 +00:00
adjemian a646281137 If var_list_ is empty the user is asked to confirm that he wants to obtain posterior statistics for all the endogenous variables of the model. The user can then choose between:
[1] var_list_ is the set of all the endogenous variables,
[2] var_list_ is the set of all observed variables,
[3] Stop Dynare and edit the mod file (to add a list of variables after the estimation command).

   

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2020 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-09-02 15:52:55 +00:00
adjemian a9be2e5f13 Added Independent Metropolis Hastings and multivariate student as an alternative to multivariate normal for the proposal distribution. The default posterior sampling algorithm is random walk metropolis with a gaussian proposal distribution.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2009 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-28 13:38:07 +00:00
michel 842fc6631b fixing bug for ML estimation when no priors are available
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1999 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-25 19:59:08 +00:00
sebastien 9f5beff89e v4 matlab: fixed remaining copyright headers (those files which are in the CR+LF endline convention)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1975 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-01 13:08:13 +00:00
michel c9cf49e30b options_.nk default is now set to 1
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1963 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-26 14:15:21 +00:00
michel 6ff7605f58 added missing semicolon
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1960 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-21 20:20:53 +00:00
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