Commit Graph

6279 Commits (74ed99c6cac1df5456f197cea88ca054353c59f1)

Author SHA1 Message Date
Stéphane Adjemian (Charybdis) d471bede09 Call dynare_solve instead of trust region when simulating backward models.
Gives access to other solvers.
2017-05-06 16:32:48 +02:00
Stéphane Adjemian (Charybdis) 36fb15f34c Rewrote header. 2017-05-04 18:17:15 +02:00
Stéphane Adjemian (Charybdis) cfc849fadc Fixed subsample periods for exogenous variables.
Model inversion routine was returning wrong results when the periods in
constrainedpaths where not aligned with the periods in exogenousvariables.

(cherry picked from commit d0071bd80b)
2017-05-03 14:22:04 +02:00
Stéphane Adjemian (Charybdis) 5ce20179bd Added specialized code for the inversion of backward models. 2017-05-02 23:04:44 +02:00
Stéphane Adjemian f6bb392165 Merge pull request #1445 from JohannesPfeifer/ramsey_message
Ramsey: provide informative error messages related to steady state
2017-05-02 22:56:26 +02:00
Johannes Pfeifer 37bffddef8 Provide correct error code if no steady_state-file is provided and Ramsey fails to find steady state 2017-05-02 13:48:25 +02:00
Johannes Pfeifer 5af9af06b4 Provide informative error message if steady state file is used without specifying an instrument 2017-05-01 18:59:11 +02:00
Stéphane Adjemian (Charybdis) e1c983cc7b Fixed bug (ensure that we concatenate column vectors). 2017-04-29 19:20:02 +02:00
Johannes Pfeifer b52c095a6b Add legacy function for loading mat-files with old interface
Follows approach of #758 and closes #1364
2017-04-29 18:25:39 +02:00
Stéphane Adjemian 072246c5ab Merge pull request #1441 from JohannesPfeifer/ksstat
Remove redundant ksstat option
2017-04-29 18:00:25 +02:00
Johannes Pfeifer d7b2e271d7 Update documentation on sensitivity
Closes #789
2017-04-27 12:03:02 +02:00
Johannes Pfeifer 451646ff16 Remove redundant ksstat option
Closes #1431
2017-04-27 11:08:17 +02:00
Stéphane Adjemian (Charybdis) c1b6a58eb7 Manually revert 05fc096569.
Robust prediction error covariance matrix computation is now optional (with
rescale_prediction_error_covariance option).

Closes #1437.
2017-04-27 10:44:27 +02:00
Stéphane Adjemian (Charybdis) d6e1d0baa5 Added option rescale_prediction_error_covariance. 2017-04-26 18:22:03 +02:00
Stéphane Adjemian (Charybdis) e21387c874 Bump Octave version.
Octave 4.2.1 32bit or 64bit is now required (should work with 4.2.0 but not
tested anymore, so users should upgrade).
2017-04-26 15:51:24 +02:00
Stéphane Adjemian (Charybdis) 650a3f6da2 Point to mex/octave32 if OCtave 32bit is used on Windows platform. 2017-04-26 15:10:40 +02:00
Johannes Pfeifer 6ca415ce14 stochastic_solvers.m: Suppress redundant warning if order was already set to 1 2017-04-25 20:16:10 +02:00
Houtan Bastani 7829a25238 make stoch_simul solve linear model using order=1, even when order=2,3 specified. Also makes stoch_simul more efficient. closes #1336
(cherry picked from commit e29be9676dd40388919819af2d366b8308763ccc)
2017-04-22 16:26:13 +02:00
Stéphane Adjemian (Charybdis) 767e45db95 Shut off warning about short circuit operators (when calling qzdiv). 2017-04-22 14:44:47 +02:00
Stéphane Adjemian (Charybdis) ad21612967 Removed Octave specific part in mjdgges.m function.
Also force complex QZ factorization in Octave.
2017-04-22 14:44:47 +02:00
Johannes Pfeifer fa1563370c Make resol.m honor nocheck flag
Before, we never tested for correctness, allowing for wrong steady state files in the check command. Fixes bug introduced in 616efb53a448cfa59149951395838627fd1bf719 and restores behavior in 4.4.3
2017-04-21 10:10:03 +02:00
Stéphane Adjemian 7f4c1c6529 Merge pull request #1435 from JohannesPfeifer/cmaes_fitness
mode_compute=9: Make sure initial search volume (SIGMA) is not badly …
2017-04-20 16:33:37 +02:00
Stéphane Adjemian (Charybdis) 7376498e51 Fixed branch for dseries submodule. 2017-04-20 16:28:39 +02:00
Johannes Pfeifer 52a082a1f9 Add check for positive definiteness of Sigma_u^star
Otherwise, complex likelihoods may occur
2017-04-20 16:18:03 +02:00
Stéphane Adjemian (Charybdis) d0682bca30 Updated dseries submodule. 2017-04-20 15:36:06 +02:00
Johannes Pfeifer f1123200e5 mode_compute=9: Make sure initial search volume (SIGMA) is not badly conditioned 2017-04-12 13:39:34 +02:00
Stéphane Adjemian (Charybdis) 97ac502d3d Fixed wrong threshold (unit root detection again). 2017-04-05 14:14:56 +02:00
Stéphane Adjemian (Charybdis) 288f010944 Fixed bug (detection of unit roots). 2017-04-05 14:11:23 +02:00
Stéphane Adjemian (Charybdis) f57fc0a5a3 Added new routine for model inversion. 2017-04-05 13:42:03 +02:00
Stéphane Adjemian (Charybdis) 8a18e87d98 Removed persistent variables in evaluate_smoother routine.
Closes #1412.
2017-04-05 11:44:27 +02:00
Johannes Pfeifer 00299a92c1 Make sure options_.first_obs is properly set 2017-04-05 11:44:27 +02:00
Stéphane Adjemian (Charybdis) 4dcdb81a31 Changed error message introduced in 30c9b3721564d89d1b85abcdc75d493075e6ca77. 2017-04-03 11:25:05 +02:00
Stéphane Adjemian (Charybdis) ade89a9ec1 Fixed missing initialization of qz_criterium with nonlinear filters. 2017-04-03 11:25:05 +02:00
Johannes Pfeifer 76c4bd04fe Provide informative error message if non-stationary model is estimated using particle filter
Closes #1377

(cherry picked from commit efaa7e54136ffd48fb69e075ecacf9708a553d3b)
2017-04-03 11:25:05 +02:00
Stéphane Adjemian (Charybdis) f9a462bf07 Added option nonlinear_filter_initialization.
Default value is 1 (initialization with the ergodic variance of the reduced
form solution of the model approximated at order one).

If the model has unit roots, the user must use `nonlinear_filter_initialization=3`,
which select an identity matrix for the initial covariance matrix of the state variables.

A side effect of this option is to temporarily change the value of options_.qz_criterium to
a value above one (ie 1+1e-6) so that the unit roots are not rejected. If the
model has unit roots and if the and if the option
nonlinear_filter_initialization has a value less than 3, the evaluation of the
likelihood will fail, because by default the unit root is counted as an
unstable root.
2017-04-03 11:25:05 +02:00
Stéphane Adjemian (Charybdis) 97e185bc6e Cosmetic changes in doc header. 2017-04-03 11:25:05 +02:00
Houtan Bastani f18c16653e Merge pull request #1428 from JohannesPfeifer/patch-1
Test the rank of Pinf in univariate smoother for the subset of observables
2017-04-01 09:57:32 +02:00
Johannes Pfeifer 1755192e63 Make 792924 consistent with cases where Pinf is an empty matrix
Fixes the crash in `analytic_derivatives/fs2000_analytic_derivation.mod`
2017-03-31 17:41:38 +02:00
Houtan Bastani ac851b0bac preprocessor: initial_condition_decomposition front end. closes #1425 2017-03-31 13:19:04 +02:00
Houtan Bastani 3e779ebfee initial_condition_decomposition: fix options_ substructure 2017-03-31 13:09:21 +02:00
Marco Ratto 792924a3b7 - test the rank of Pinf in univariate smoother for the subset of observables, in order to trap cases where this is not already trapped in compute_Pinf_Pstar.m
- issue warning when diffuse steps never end [maybe we should issue an error?]
2017-03-30 11:21:54 +02:00
Johannes Pfeifer bf607ce630 Make sure no stale _posterior_draws.mat files are present
May crash compute_moments_varendo.m due to more files being present than generated in the current run
2017-03-29 14:52:32 +02:00
Johannes Pfeifer 839e7075f6 dsge_simulated_theoretical_covariance.m: fix bug that led to last _2ndOrderMoments*.mat file not being saved, instead overwriting the prior one
Produced wrong posterior covariance estimates in large models, because the moments matrix contained zeros that were not overwritten by loaded draws due to missing file
2017-03-29 14:52:32 +02:00
Houtan Bastani 37dd5fd077 Merge pull request #1422 from JohannesPfeifer/real_time_shock
realtime_shock_decomposition.m: Delete variable that produced unwante…
2017-03-27 11:37:16 +02:00
Houtan Bastani 2240b06487 fix typo 2017-03-27 11:20:34 +02:00
Marco Ratto e24b1ea76e fixes in preamble and plot_shock_decomp structure of options. 2017-03-27 08:29:52 +02:00
Johannes Pfeifer 4380b4a973 realtime_shock_decomposition.m: Delete variable that produced unwanted output 2017-03-25 12:21:47 +01:00
Marco Ratto bab401ebbc utility to decompose initial condition effect 2017-03-25 08:16:33 +01:00
Houtan Bastani 7315b5ae73 fix bug in merge commit e103462050 2017-03-24 18:11:45 +01:00
Houtan Bastani b3fa669717 bug fix introduced in 234aaacf92 2017-03-24 17:13:03 +01:00
Houtan Bastani ae921f6bf1 Merge remote-tracking branch 'rattoma/shock_decomp' 2017-03-24 16:20:47 +01:00
Houtan Bastani b5262ca1e8 Merge remote-tracking branch 'rattoma/deterministic' 2017-03-24 16:20:01 +01:00
Houtan Bastani e103462050 Merge remote-tracking branch 'rattoma/gsa' 2017-03-24 16:19:44 +01:00
Houtan Bastani 732aa8c30c Merge remote-tracking branch 'rattoma/slice' 2017-03-24 16:19:04 +01:00
Houtan Bastani 598422931b reporting: submodule update 2017-03-24 16:16:48 +01:00
Houtan Bastani b3ecc8c003 preprocessor: add plot_shock_decomposition command. closes #1406 2017-03-24 12:11:36 +01:00
Houtan Bastani b8b6228d67 graph_decomp_detail: fix bug, extra argument not referenced 2017-03-24 11:24:14 +01:00
Houtan Bastani 93130ee922 fix bug in WriteShockDecomp2Excel 2017-03-24 10:34:59 +01:00
Houtan Bastani c467c92d29 shock_decomposition: move fig_names to fig_name (fixing typo) 2017-03-24 10:34:59 +01:00
Houtan Bastani e5f1d20221 change dyn_figure to take a nodisplay and graph_format arguments as opposed to options_. closes #1415 2017-03-23 17:59:05 +01:00
Houtan Bastani 2aa85f978a change dyn_figure to take a nodisplay argument as opposed to options_. #1415 2017-03-23 14:30:16 +01:00
Marco Ratto afcb8eab35 catch M_ output argument from evaluate_smoother;
remove unused variable lead_lag_incidence
2017-03-23 08:25:14 +01:00
Marco Ratto 234aaacf92 factorized display of critical values. 2017-03-23 00:08:05 +01:00
Marco Ratto c60379ae96 upgrade call to evaluate_smoother 2017-03-22 23:32:19 +01:00
Marco Ratto 1db86865f7 better trap missing input arguments 2017-03-22 23:24:41 +01:00
Marco Ratto 99dbc8c74d bug fix with redundant call to prior_bounds 2017-03-22 23:08:18 +01:00
Marco Ratto b77791c541 ensure invhess is empty with slice for proper prior initialization of chains 2017-03-22 23:06:19 +01:00
Marco Ratto 780c1f5216 provide userdata with info on actual varlist used 2017-03-22 22:37:59 +01:00
Marco Ratto a9dd046db7 fill in end of sample conditional shock decompositions. 2017-03-22 22:30:14 +01:00
Stéphane Adjemian (Charybdis) 76097a799f Added missing struct2array routine. 2017-03-22 15:20:13 +01:00
Stéphane Adjemian (Charybdis) ee2c30fd97 Partialm cherry-pick of 28e95d817a181f758dab595d6a14de0ff348bed5
Give more informations in case of NaN, Inf or non real variables.

Closes PR #1385.
2017-03-22 14:04:35 +01:00
Stéphane Adjemian (Charybdis) 85fe69b265 Cosmetic change (use logicals). 2017-03-20 11:39:22 +01:00
Johannes Pfeifer 9abac8ccdb Store indicator whether smoother was used with loglinear
Required to keep track of whether estimates were logged. Related to #1407
2017-03-20 11:36:10 +01:00
Johannes Pfeifer 5424fde74e metropolis_draw.m: Replace round by ceil to avoid crashes when 0 draws would be used
(cherry picked from commit 2dc3ad22fdb8fedee7fdd2ed3577978bd8f37324)
2017-03-20 10:19:14 +01:00
Johannes Pfeifer 94ef60556e Account for loglinear option when reading in M_.endo_histval
(cherry picked from commit d088420c21eba397459015b6a957c7eff7eafc36)
2017-03-20 09:37:58 +01:00
Johannes Pfeifer 6e268c34d4 Cosmetic fixes to dynare_estimation_init.m
(cherry picked from commit 7ea24165c0a26393753c58170f74fab3f7076b3e)
2017-03-20 09:27:04 +01:00
Marco Ratto 9427b58bfd add parameter names to mean file, to ensure same behavior of standard mode files. 2017-03-19 12:19:24 +01:00
Marco Ratto 389123d0b5 bug fixes. 2017-03-19 12:19:24 +01:00
Marco Ratto 121333d913 currently, the mode_file specified by the user is re-set to empty. This re-sets mode_file to the user defined value. 2017-03-19 12:19:24 +01:00
Marco Ratto b916d788f4 trap cases where both point and posterior estimates are available 2017-03-19 12:19:24 +01:00
Stéphane Adjemian (Charybdis) a869f5a2c4 Updated m-unit-tests submodule. 2017-03-19 12:15:22 +01:00
Marco Ratto 2b28ba70d9 Make remote parallel computation compatible with new steadystate and auxiliary variable files 2017-03-18 17:28:44 +01:00
Stéphane Adjemian (Charybdis) 6c21d44968 Fixed encoding.
For a non identified an enconding issue was leading scatter_plots function to crash...
2017-03-18 16:28:30 +01:00
Marco Ratto d1550293bf bug fix for the rare case where r2 does not change for some observable 2017-03-18 10:27:36 +01:00
Marco Ratto 576b2d0f85 end-of-line fix 2017-03-18 10:27:36 +01:00
Marco Ratto 0845aa8430 Fixed header and license of GSA. 2017-03-18 10:27:36 +01:00
Marco Ratto a40a854a59 Set copyright for pick.m 2017-03-18 10:27:36 +01:00
Marco Ratto 0f07d17d8c Introduced scatter plot analysis of output results, borrowing from by GLUWIN toolbox. 2017-03-18 10:27:36 +01:00
Marco Ratto a47f6fc2ca - save also info on selected endo names
- bug fix for one single endo variable
- when nograph, no older plot is deleted
2017-03-18 10:27:36 +01:00
Marco Ratto 0752d6a8e6 Trap incompatible user define options in a more transparent way. Fixes #1016. 2017-03-18 10:27:36 +01:00
Marco Ratto a5a086040b Bug fixes for latex and to new smooth* files saved by posterior sampler 2017-03-18 10:27:36 +01:00
Stéphane Adjemian (Charybdis) e71ed1bad6 Partially revert f70f45d1271e716498a8761a8e8476f54da3607d. Do not discard repetitions. 2017-03-18 00:06:15 +01:00
Marco Ratto c02de3c652 fixed text to error message 2017-03-18 00:06:15 +01:00
Marco Ratto e180e2f075 1) fixed while for b index
2) ensure there are no repeated draws in sub-draws;
3) speed-up subdraw sampling when all retained draws are used.
2017-03-18 00:06:15 +01:00
Marco Ratto 20b0fc8bac update mh_mode with slice and load_mh_file 2017-03-18 00:06:15 +01:00
Marco Ratto 1e3e2f70a9 set posterior sampler options when load_mh_file 2017-03-18 00:06:15 +01:00
Marco Ratto 49b45a3ba7 sampler options to be set also when load_mh_file = 1 2017-03-18 00:06:15 +01:00
Marco Ratto fd8073720e For very short chains, maximize the max number of sub_draws across chains 2017-03-18 00:06:15 +01:00
Stéphane Adjemian (Charybdis) bc6c6fc486 Removed remaining calls or references to cputime. 2017-03-17 22:49:01 +01:00
Marco Ratto a68e958cf7 As agreed in #1375, moved treatment of filtered_vars in dynare_estimation_init.m 2017-03-17 15:43:00 +01:00