Commit Graph

6570 Commits (e32b87d4b3143772889240ce963f33db25487e92)

Author SHA1 Message Date
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
Marco Ratto 4f93c3df15 proper use of varlist in smoothed variables + sort in alphabetic order to find more easily plots for large numbers of variables. 2017-03-17 15:43:00 +01:00
Marco Ratto 4b2d139c7a - store oo_.FilteredVariablesKStepAheadVariances only if options_.filter_covariance. this can save a lot of memory for large models
- oo_.FilteredVariables must be stored independently to a previous MCMC. evaluate_smoother must in any case provide full info in oo_
- options_.filtered_vars does not always imply filtered variables are computed. options_.nk is more robust.
2017-03-17 15:43:00 +01:00
Stéphane Adjemian (Charybdis) 510bbe200e Bug fix (wrong number of output arguments when calling evaluate_smoother). 2017-03-17 15:09:05 +01:00
Stéphane Adjemian (Charybdis) 0adb065b7e Bug fix (wrong count of the number of output arguments). 2017-03-17 14:21:53 +01:00
Johannes Pfeifer 5d8d5e90d8 evaluate_smoother.m: pass updated M_.params and oo_ back to base workspace
Closes #1373
2017-03-17 13:15:39 +01:00
Stéphane Adjemian (Charybdis) b6a8887da3 Bug fix (missing declaration of freq if initial_date is empty). 2017-03-17 12:42:00 +01:00
Marco Ratto 6b64c47ec2 Bug fix with stored shock_decomp options 2017-03-17 12:41:59 +01:00
Marco Ratto ab21c383a6 Added check for change in options_.nobs, for rolling calls to smoother
Use select_qz_criterium_value
to fix all cases where the default
options_.qz_criterium = [];
is passed to evaluate_smoother and dataset_ is already set.

qz_criterium also set to fix evaluate_likelihood.m for similar issues
2017-03-17 12:41:59 +01:00
Marco Ratto 19cc38b39e allow to start from quarterly growth rate variables 2017-03-17 12:41:59 +01:00
Marco Ratto ce6f76713d cosmetic change 2017-03-17 12:41:59 +01:00
Marco Ratto 7a6b4f3464 extra option about choosing the time periods for which to plot decompositions 2017-03-17 12:41:59 +01:00
Marco Ratto 1920fb0bfe fixed timing bugs in annualized shock decomposition 2017-03-17 12:41:59 +01:00
Marco Ratto d7723877cf bug fixes for annualized nominal variables 2017-03-17 12:41:59 +01:00
Marco Ratto ac43beb801 bug fix with 'others' in conditional decomposition 2017-03-17 12:41:59 +01:00
Marco Ratto 9005054c6f optional output argument for plot_shock_decomposition.m + several fixes to annualized computations and plots. 2017-03-17 12:41:59 +01:00
Marco Ratto 39c3cf7718 bug fix with realtime conditional shock decomp 2017-03-17 12:41:59 +01:00
Marco Ratto a8107e154a added new annual aggregation types, for consistent quantity/price aggregations, if required. 2017-03-17 12:41:59 +01:00
Marco Ratto cb3362b89d missing utility for xls export of shock decomps. 2017-03-17 12:41:59 +01:00
Marco Ratto 5a51e9cc78 fixed zero line in all cases 2017-03-17 12:41:59 +01:00
Marco Ratto a50a4f458a Bug fix: all shock decomp options need to be stored in mydata for uimenu's. 2017-03-17 12:41:59 +01:00
Marco Ratto e21c887775 bug fix with steady state option 2017-03-17 12:41:59 +01:00
Marco Ratto 61d55127ed Fixed bug with naming of screen option 2017-03-17 12:41:59 +01:00
Marco Ratto e7442bcf78 added geometric average.
Set neutral type names, replacing stock/flow/deflator.
2017-03-17 12:41:59 +01:00
Marco Ratto 46d6e59c9a small fix to file names 2017-03-17 12:41:59 +01:00
Marco Ratto bfe6d04bf2 - Added the possibility to compute annualized variables and associated decompositions out of quarterly ones, without blowing up variable definitions
- Fixed call to plot realtime conditional shock decomposition
2017-03-17 12:41:59 +01:00
Marco Ratto bb4ecbf5a8 Realtime conditional forecast is better computed as residual from the realtime shock decomposition and the model unconditional forecast 2017-03-17 12:41:59 +01:00
Marco Ratto a7ae355e8f Fixed dating issues in some plot shock decomps 2017-03-17 12:41:59 +01:00
Marco Ratto 441d34a6ee Fixed bug with realtime conditional shock decompo 2017-03-17 12:41:59 +01:00
Marco Ratto f87e240b30 Some better diversification of fig names and captions 2017-03-17 12:41:59 +01:00
Marco Ratto 92f79a14f4 Added realtime conditional forecast shock decomposition 2017-03-17 12:41:59 +01:00
Marco Ratto 3bebeb1832 Legend for detailed plots 2017-03-17 12:41:59 +01:00
Marco Ratto 3fdf7be6e8 - removed useless internal option fig_mode
- better captions/figure nsmes
- moved plots to graphs subdir
- fixed latex issuea [label and caption].
2017-03-17 12:41:59 +01:00
Marco Ratto 10773e2cbb results of realtime_shock_decomposition.m should be plotted using only plot_shock_decomposition.m, so avoid unexpectable behavior. 2017-03-17 12:41:59 +01:00
Marco Ratto d304fd26c1 shock_decomposition.m has to rely on plot_shock_decomposition.m, to make behaviour robust. 2017-03-17 12:41:59 +01:00
Marco Ratto c2d2c46edf fixed figure name 2017-03-17 12:41:59 +01:00
Marco Ratto 02b3e20377 allow uimenu's also for colored graphs + better organization of userdata info 2017-03-17 12:41:59 +01:00
Marco Ratto 4ff586247e bug fix in Others group label 2017-03-17 12:41:59 +01:00
Marco Ratto 2c54d4432a - Bug fix with screen_shocks option
- fix to figure title
2017-03-17 12:41:59 +01:00
Marco Ratto ad55e1b085 initialize screen_shocks option of shock decomp 2017-03-17 12:41:59 +01:00
Marco Ratto 9e73a9e86b add steady state line 2017-03-17 12:41:59 +01:00
Marco Ratto 94297b71cc bug fixes around plot_shock_decomposition.m utilities 2017-03-17 12:41:59 +01:00
Marco Ratto 0bf30889f9 Fixed header + bug fix for default options + set only local nograph 2017-03-17 12:41:59 +01:00
Marco Ratto e3c825f01a fixed header 2017-03-17 12:41:59 +01:00
Marco Ratto 73e5650dcc Revert "shock_decomposition should also follow global options_.nograph"
This reverts commit 01971dbeb032642421f60b468517fbbe0995a222.
2017-03-17 12:41:59 +01:00
Marco Ratto ba7802204f end of lines 2017-03-17 12:41:59 +01:00
Marco Ratto d2d6e19d87 fixes around default options in shock decompositions 2017-03-17 12:41:59 +01:00
Marco Ratto 7733484912 New utility plot_shock_decomposition.m
new graph_decomp_detail.m for detailed plots of shock contributions
new expand_group.m for optional uimenu operation in case of grouped shocks.
2017-03-17 12:41:59 +01:00
Marco Ratto 3ed94b2e46 New realtime_shock_decomposition.m routine + provisions in global initialization 2017-03-17 12:41:59 +01:00
Marco Ratto 4a314f7f8a shock_decomposition should also follow global options_.nograph 2017-03-17 12:41:59 +01:00
Marco Ratto a092cc3b73 Set default graph options and extend graph_decomp.m accordingly. 2017-03-17 12:41:59 +01:00
Marco Ratto e174d04579 - New option init_state [options_.shock_decomp.init_state] to compute the shock decomposition conditional to the state variables in period 1;
- force plot_priors=0
- when grouping shocks, include the residual group Others, since user defined groups may not add up to the smoothed variable.
2017-03-17 12:41:59 +01:00
Marco Ratto f27f210654 New utility for changing M_.params only locally 2017-03-17 12:41:59 +01:00
Marco Ratto a6f7e02d17 added utilities for optimal distinguishable colors. 2017-03-17 12:41:59 +01:00
Stéphane Adjemian (Charybdis) 06326d4477 Fixed bug introduced in cad7adc01f. 2017-03-16 18:14:23 +01:00
Stéphane Adjemian (Charybdis) dbffe2a841 Do not check boundaries if the model is not estimated. 2017-03-16 15:50:44 +01:00
Stéphane Adjemian (Charybdis) cc34e16458 Set temporarily mode_compute and mh_replic to zero if estim_params_ is empty. 2017-03-16 15:45:08 +01:00
Stéphane Adjemian (Charybdis) cad7adc01f Added routine for testing if we are currently estimating a model. 2017-03-16 15:03:46 +01:00
Stéphane Adjemian (Charybdis) 5f5c093b2e Renamed isestimation function + Cosmetic changes. 2017-03-16 15:00:02 +01:00
Stéphane Adjemian d0ab90275b Merge pull request #1402 from JohannesPfeifer/prior_asymptote
Add warning if prior has an asymptote
2017-03-15 16:33:10 +01:00
Stéphane Adjemian (Charybdis) 1ff816d7bf Updates particles submodule. 2017-03-15 16:30:29 +01:00
Stéphane Adjemian (Charybdis) 4f3b35acba Account for Matlab 2017a.
(cherry picked from commit f3a1619040fbb831830791424015d3d3bf8bdbae)
2017-03-13 23:42:48 +01:00
Houtan Bastani 9f7b084970 Merge branch 'master' into json 2017-03-10 17:20:15 +01:00
Johannes Pfeifer 87fc09863d Add warning if prior has an asymptote
Can happen with beta and gamma distribution. Closes #1401
2017-03-10 15:16:33 +01:00
Johannes Pfeifer 56edaf5cb0 Fix check for existence of dname variable 2017-03-07 13:55:29 +01:00
Houtan Bastani 5063020c5d Merge branch 'master' into json 2017-03-03 14:42:25 +01:00
Houtan Bastani ed3e74994f preprocessor: add onlyjson option to allow exit upon writing of JSON output. #1387 2017-02-28 14:34:22 +01:00
Stéphane Adjemian (Charybdis) 927b813ed8 Removed printing of debugging info.
Introduced in ffebf6b262.
2017-02-15 13:35:33 +01:00
Stéphane Adjemian (Charybdis) ffebf6b262 Check positive steady state for loglinear option...
1e-9 is too far from zero. Set 1e-16 as a threshold value for the positivity test.
2017-02-15 12:41:56 +01:00
Stéphane Adjemian (Charybdis) 9fbef0c107 Removed penalty_hessian routine.
+ Code factorization.
 + Added an option for using the penalized objective when computing numerically
 the hessian at the mode.

Previous behaviour (introduced with penalty_hessian routine) was to compute the
hessian matrix at the mode with the penalized objective function (instead of
the original objective function). This behaviour hides problematic situations,
where the computed hessian (using the original objective) would not be full
rank. For instance, if the estimation ends up with a parameter on (or very
close to) the bounds of its possible values (which is often not a desirable
outcome), the estimated posterior variance would be zero for this
parameter (with the original objective) because the hessian is not finite in
this direction, while the posterior variance would be positive if the penalized
objective is used instead. But this estimate would not be reliable by
construction of the penalty which is quite ad-hoc (more fundamentally I do not
think that there exists any rational for approximating the covariance matrix
with the inverse of the hessian matrix if the mode is on the border of the set
of possible values).

This commit restore the behaviour previous to 2446ab02ba.

An option is available for computing the hessian with the penalized
objective function.
2017-02-08 13:07:25 +00:00
Stéphane Adjemian (Charybdis) 5b73d7d59c Added new optimization routine (particleswarm).
Only available under Matlab if the Global Optimization Toolbox is installed.
2017-02-08 13:07:25 +00:00
Stéphane Adjemian (Charybdis) 35078e13ee Completed header + cosmetic changes. 2017-02-08 13:07:25 +00:00
Stéphane Adjemian (Charybdis) 8d4abe4a9f Cosmetic changes. 2017-02-08 13:07:24 +00:00
Stéphane Adjemian (Charybdis) e71e89bb38 Added check on Octave version. 2017-02-08 13:07:24 +00:00
Houtan Bastani d05dd34d30 preprocessor: write JSON output. #1387 2017-02-06 17:41:18 +01:00
Stéphane Adjemian (Charybdis) 62c954ff12 Fixes #1287. 2017-01-25 22:13:36 +01:00
Stéphane Adjemian (Charybdis) 0b1b873160 Updated dseries submodule.
Fixes remaining Octave failing unit tests.
2017-01-25 09:18:28 +01:00
Johannes Pfeifer 875497bc71 Unit test lpdfgweibull.m: adjust upper integration bound under Octave
Does not correctly integrate otherwise as more than 99% of support is 0
2017-01-18 11:01:13 +01:00
Johannes Pfeifer ce4ab7f7d8 Unit test wblinv.m under Octave: adjust tolerance 2017-01-18 10:59:53 +01:00
Houtan Bastani 12b8a915e9 submodule update: reporting 2017-01-09 16:20:15 +01:00
Stéphane Adjemian ba9af24a67 Merge pull request #1370 from JohannesPfeifer/updated_variables
Output UpdatedVariables in oo_ without filtered_variables
2017-01-05 11:50:06 +01:00
Stéphane Adjemian 4dfec0d7fb Merge pull request #1369 from JohannesPfeifer/disp_dr_aux_var
disp_dr: Add case for aux_vars.type==0
2017-01-05 10:44:44 +01:00
Stéphane Adjemian 77a93d6ff9 Merge pull request #1362 from JohannesPfeifer/MCMC_jumping_covariance
Moving loading of MCMC_jumping_covariance to after display of standar…
2017-01-05 09:02:59 +01:00
Stéphane Adjemian b464226eaa Merge pull request #1358 from JohannesPfeifer/nograph
Implement posterior_nograph option
2017-01-05 06:52:08 +01:00
Stéphane Adjemian 90982d5fa0 Merge pull request #1357 from rattoma/parallel
Provisions for new node option NumberOfThreadsPerJob. Document option
2017-01-04 23:29:24 +01:00
Stéphane Adjemian (Lupi) c893c0620c Merge branch 'pr#1354' 2017-01-04 15:12:32 +01:00
Johannes Pfeifer 2c5b1fed2d Use master function lyapunov_solver.m to call individual solvers 2017-01-04 11:25:44 +01:00
Stéphane Adjemian b946d3c082 Merge pull request #1353 from JohannesPfeifer/Plot_posterior
PlotPosteriorDistributions.m: remove eval commands and fix typo in "m…
2017-01-04 11:20:06 +01:00
Johannes Pfeifer e815c2b4db Output UpdatedVariables in oo_ without filtered_variables
Makes it consistent with manual and closes #1366
2017-01-04 10:57:00 +01:00
Stéphane Adjemian (Karaba) 515e080f49 Do not compute static residuals if steady state routine failed.
Avoids cryptic model dependent error message.
2017-01-04 10:26:22 +01:00
Johannes Pfeifer 65c402469c disp_dr: Add case for aux_vars.type==0
Closes #1367
2017-01-04 09:14:01 +01:00
Marco Ratto 3c892170ef Fixed bug with getting CPU number on mac [see #1272 #838] 2017-01-03 19:24:18 +01:00
Marco Ratto ee7611c8ad added note to commented text, as an alternate option, should bugs/problems be reported with line 60 2017-01-03 19:15:53 +01:00
Johannes Pfeifer 7b4fc9ec4a Moving loading of MCMC_jumping_covariance to after display of standard errors and computation of Laplace approximation
Closes #1255
2016-12-27 12:07:22 +01:00
Johannes Pfeifer d8b0495c77 Make PosteriorIRF.m and pm3.m honor nograph and posterior_nograph option 2016-12-26 13:11:01 +01:00
Johannes Pfeifer 452d3cd986 Implement preprocessor interface for posterior_nograph option 2016-12-26 13:07:46 +01:00
Johannes Pfeifer 28d4ed1918 Finish implementation and documentation of nograph option of shock_decomposition.m 2016-12-26 12:52:28 +01:00
Marco Ratto 4ecf1d9f5d Workaround to avoid popup figures with nodisplay option saved as fig in MATLAB. 2016-12-20 09:14:48 +01:00
Marco Ratto a55cbdd5fe Provisions for new node option NumberOfThreadsPerJob. Document option 2016-12-19 23:28:46 +01:00
Johannes Pfeifer 352786c2b4 load_mh_file: recompute results by default and load on request
Prevents general overwriting of results in oo_ and having stale results
2016-12-19 19:37:34 +01:00
Johannes Pfeifer 5707b4d965 Make evaluate_smoother.m output former global variables for correct updating of these objects 2016-12-18 12:43:29 +01:00
Johannes Pfeifer 61ee4e123c Reset selected_variables_only in shock_decomposition.m
closes #1350
2016-12-18 09:57:51 +01:00
Johannes Pfeifer 2f717b5adc Eliminate global variables from shock_decomposition.m 2016-12-18 09:57:51 +01:00
Johannes Pfeifer 33d0f44c40 model_diagnostics.m: provide warning that check of dynamic model is not supported for block option instead of crashing 2016-12-17 21:28:04 +01:00
Johannes Pfeifer 1a8382adfb OSR: add error indicator and suppress output if noprint options is specified 2016-12-17 19:30:57 +01:00
Johannes Pfeifer 7254767ccf Fix bug in osr_obj.m that did not correctly filter out all problems 2016-12-17 19:30:57 +01:00
Johannes Pfeifer 481bb43fd7 PlotPosteriorDistributions.m: remove eval commands and fix typo in "mearsurement_errors" 2016-12-17 18:20:58 +01:00
Johannes Pfeifer 5515da191a Add Raftery/Lewis (1992) convergence diagnostics 2016-12-17 17:22:05 +01:00
Johannes Pfeifer c03fa143f7 Fix printout of comment in McMCDiagnostics.m 2016-12-17 17:22:05 +01:00
Johannes Pfeifer d6d517c4c9 Move MCMC diagnostics files to separated folder 2016-12-17 17:22:04 +01:00
Michel Juillard 6fd715a3b8 adding simul_backward and simul_backward_linear 2016-12-05 16:17:14 +01:00
Houtan Bastani c2d72d2292 fix check of path for octave 2016-12-05 12:28:02 +01:00
Johannes Pfeifer f5fb81a758 Correct typos in error message and header 2016-12-01 17:49:06 +01:00
Stéphane Adjemian (Charybdis) 95076d5c72 Fixed initial condition of stochastic simulation of backward looking models.
Do not initialize with the steady state. Use histval if available,
default initialization is 0 (which may be problematic).
2016-12-01 13:32:54 +01:00
Johannes Pfeifer ca1c6ecc0e Increase test tolerance under Octave for lpdfgweibull.m 2016-11-24 11:50:21 +01:00
Michel Juillard 42acb96b3d renamed compute schur_statespace_transformation.m
refactored code
2016-11-22 18:40:10 +01:00
Michel Juillard 73e0f9d591 made evaluate_steady_state file consistent with evaluation of auxiliary
variables in <fname>_static.m file
2016-11-20 15:40:08 +01:00
Michel Juillard e14a215556 put Z back 2016-11-20 11:46:21 +01:00
Michel Juillard 897af97bff diffuse filter: fixed bug when nonstationary variables aren't observed 2016-11-20 11:08:07 +01:00
Johannes Pfeifer 1a978e42df Fix bug in missing_DiffuseKalmanSmootherH3_Z.m
Closes #1339 by properly factorizing computations
2016-11-19 10:07:16 +01:00
Michel Juillard 2f9dc09285 diffuse filter: removed special treatment of static variables 2016-11-18 14:36:24 +01:00
Michel Juillard 383d891e81 updating extended path notes 2016-11-14 16:42:49 +01:00
Johannes Pfeifer 46b44cd481 missing_DiffuseKalmanSmootherH3_Z.m: Fix typo in formula that makes tests fail 2016-11-14 11:54:39 +01:00
Houtan Bastani 89e0a84327 fix typo from 98cf1bfc1d 2016-11-14 11:08:02 +01:00
MichelJuillard 80157985c0 Merge pull request #1333 from JohannesPfeifer/octave_unit_test
Two fixes related to Octave unit test
2016-11-13 19:14:50 +01:00
MichelJuillard 6e93b1ecbf Merge pull request #1330 from JohannesPfeifer/resol_fix
resol.m: make sure oo.dr is correctly updated even if function is abo…
2016-11-13 19:14:23 +01:00
MichelJuillard 31d2c7e332 Merge pull request #1324 from JohannesPfeifer/kalman
Three bugfixes for missing_DiffuseKalmanSmootherH1_Z.m that led to wrong results
2016-11-13 19:13:10 +01:00
Johannes Pfeifer fdbb44fec6 Account for Octave's dbstack providing full path, not just filename 2016-11-10 17:58:47 +01:00
Houtan Bastani 920a9911ee add missing copyright 2016-11-10 17:49:05 +01:00
Johannes Pfeifer fccd164926 Provide lower tolerance to Octave's quadv function as integration otherwise stops prematurely 2016-11-10 17:33:18 +01:00
Marco Ratto 454ac69191 allow spaces in the name of working directories for parallel execution. 2016-11-07 17:19:38 +01:00
Marco Ratto 0a40cdf064 Bud fix for cases where record does not contain proposal covariance. 2016-11-07 17:18:41 +01:00
Johannes Pfeifer 7b03b8aef4 resol.m: make sure oo.dr is correctly updated even if function is aborted prematurely
ramsey_policy relies on oo_.dr.ys being set in any case
2016-11-07 11:36:06 +01:00
Stéphane Adjemian (Charybdis) e2da7c6627 Fixed bug (missing initialization of an option). 2016-11-05 00:08:28 +00:00
Johannes Pfeifer 7831dccd2a Transform save_tmp_file into an option and change defaults 2016-11-04 19:56:55 +01:00
Stéphane Adjemian 7733903661 Merge pull request #1329 from JohannesPfeifer/singularity_warning
Add more information to singularity warning
2016-11-04 15:12:07 +01:00
Stéphane Adjemian fa8028f79a Merge pull request #1325 from JohannesPfeifer/dyn_forecast
Fix bug in dyn_forecast.m that led to crashes when periods-option was…
2016-11-04 15:11:44 +01:00
Johannes Pfeifer 2e79d5ccac Add more information to singularity warning 2016-11-04 12:28:01 +01:00
Stéphane Adjemian 4532d13fd3 Merge pull request #1295 from JohannesPfeifer/stochastic_singularity
Stochastic singularity
2016-11-04 10:56:50 +01:00
Johannes Pfeifer 3ebc982b02 Add state_uncertainty to Bayesian smoother 2016-11-04 09:23:55 +01:00
Johannes Pfeifer 98cf1bfc1d Add smoothed state uncertainty to Kalman smoother routines 2016-11-04 09:23:55 +01:00
Johannes Pfeifer 8166707dd4 Document missing_DiffuseKalmanSmootherH3_Z.m
Also properly initializes Kinf
2016-11-04 09:21:53 +01:00
Johannes Pfeifer 86534a5f9f missing_DiffuseKalmanSmootherH1_Z.m: introduce proper case distinction in diffuse backward pass if Finf is singular 2016-11-04 09:21:53 +01:00
Johannes Pfeifer 9ce577b126 Cosmetic changes to missing_DiffuseKalmanSmootherH1_Z.m 2016-11-04 09:21:53 +01:00
Johannes Pfeifer e3aecd4e74 Diffuse Kalman filter: add comment for better comparison to Koopman/Durbin (2003) as there is a typo in their paper 2016-11-04 09:21:53 +01:00
Johannes Pfeifer c94011eeb8 missing_DiffuseKalmanSmootherH1_Z.m: fix crash when Pinf is singular for more than 1 period
iFstar was accessed as three-dimensional array with t along third dimension, but it is only two-dimensional
2016-11-04 09:21:53 +01:00
Johannes Pfeifer ff1522a571 2 bugfixes for missing_DiffuseKalmanSmootherH1_Z.m that led to wrong results
1. In case of missing observations, a_t was not propagated forward to updated a_t+1
2. In the rank-deficient Finf case, Kstar was defined as T^(-1)*K^(0), while in the full rank it was defined as Kstar=K^(0), leading to wrong results when switches between the two clauses occurred. Moreover, the later backwards pass relied on Kstar=K^(0), leading to wrong results when the rank-deficient Finf case was triggered. The implementation now consistently follows the one in kalman_filter_d.m
2016-11-04 09:21:53 +01:00
Johannes Pfeifer 57d600301b Correct description of Kstar 2016-11-04 09:21:53 +01:00
Stéphane Adjemian e2e16339a8 Merge pull request #1326 from JohannesPfeifer/posterior_IRFs
Posterior IRFs: only plot HPDIs when sufficient draws were generated
2016-11-04 09:14:13 +01:00
Stéphane Adjemian b069241d18 Merge pull request #1217 from JohannesPfeifer/qz_estimation
Make sure diffuse_filter triggers qz_criterium>1
2016-11-04 06:47:17 +01:00
Stéphane Adjemian 09d374a0be Merge pull request #1303 from JohannesPfeifer/shock_decomp
Shock decomposition and posterior moments
2016-11-04 00:41:04 +01:00
Houtan Bastani a11e355587 Merge pull request #1327 from JohannesPfeifer/line_break
Add missing line break in stoch_simul.m
2016-11-03 18:04:10 +01:00
Johannes Pfeifer 9543f3b3ae Add missing line break in stoch_simul.m 2016-11-03 18:02:03 +01:00
Stéphane Adjemian c9571b794c Merge pull request #1320 from JohannesPfeifer/var_decomp
Initialize variance decomposition array to NaN instead of 0
2016-11-03 17:36:22 +01:00
Stéphane Adjemian c0e5cc6abf Merge pull request #1313 from JohannesPfeifer/evaluate_steady_state
evaluate_steady_state.m: make sure ys contains auxiliary variables in…
2016-11-03 15:30:02 +01:00
Johannes Pfeifer 0c3065b39b Posterior IRFs: only plot HPDIs when sufficient draws were generated
Otherwise a crash during plotting will happen
2016-10-30 18:31:11 +01:00
Johannes Pfeifer 9bdc0286d6 Fix bug in dyn_forecast.m that led to crashes when periods-option was not specified
Condition for setting ex did not account for equality of horizon and periods
2016-10-30 10:41:14 +01:00
Houtan Bastani 08617bb740 fix typo 2016-10-28 16:30:43 +02:00
Houtan Bastani 0a2f3f0f10 Merge pull request #1322 from JohannesPfeifer/cosmetic
Fix typo in comment of dsge_likelihood.m
2016-10-27 17:20:51 +02:00
Johannes Pfeifer 4502369617 Fix typo in comment of dsge_likelihood.m 2016-10-27 17:15:24 +02:00
Houtan Bastani f38f9b0268 submodule update: dseries 2016-10-26 12:09:26 +02:00
Stéphane Adjemian (Charybdis) 982fc38504 Updated dseries submodule (fixes for method interfaces). 2016-10-25 11:57:15 +02:00
Houtan Bastani 46cdaf8e0a fiminsearch only has two output args under Octave 2016-10-21 17:40:27 +02:00
Stéphane Adjemian (Charybdis) 28af4678b2 Updated dseries submodule. 2016-10-21 16:13:48 +02:00
Houtan Bastani d7fc50796c submodule update: dseries, m-unit-tests 2016-10-21 15:16:14 +02:00
Houtan Bastani 847feb17fa fix mex compilation commands for Matlab R2016b on macOS. Closes #1288 2016-10-20 14:03:35 +02:00
Johannes Pfeifer 9b8a542661 Initialize variance decomposition array to NaN instead of 0
Because only stationary variables are updated, prevents non-stationary variables from showing up with 0 instead of NaN
2016-10-18 10:52:57 +02:00
Houtan Bastani 084df40535 fix mex compilation commands for Matlab R2016b on Linux. #1288 2016-10-17 18:40:48 +02:00
Houtan Bastani fa9bbc231e submodule update: dseries 2016-10-17 12:58:41 +02:00
Houtan Bastani 09669d2a14 submodule update: dseries 2016-10-17 12:37:28 +02:00
Johannes Pfeifer c7b751bd50 Add mingw to dyn_mex.m and document compiler options and installation. 2016-10-14 16:35:05 +02:00
Johannes Pfeifer e80c1e5a24 evaluate_steady_state.m: make sure ys contains auxiliary variables in case of problem with dynare_solve
Otherwise, evaluate_static_model will crash
2016-10-13 10:50:50 +02:00
Stéphane Adjemian 05a906fa8b Merge pull request #1301 from JohannesPfeifer/recursive_plot
Use raw_data in forecast plots instead of prefiltered data
2016-10-10 09:44:46 +02:00
Stéphane Adjemian c41c310cc5 Merge pull request #1310 from JohannesPfeifer/debug_mode
Make solve_algo=0 less and mode_check potentially more verbose
2016-10-10 09:40:37 +02:00
Johannes Pfeifer 6b82788180 Display reason for mode_check-problems when debugging is enabled 2016-10-09 22:16:26 +02:00
Johannes Pfeifer 29d1e80eda Decrease verbosity of solve_algo=0
Shuts off display unless debugging is requested. Otherwise, estimation will clutter the screen
2016-10-09 22:15:48 +02:00
Stéphane Adjemian (Charybdis) 83bc67f0c0 Display informative message when the model cannot be solved at the prior mode. 2016-10-07 12:30:47 +02:00
Johannes Pfeifer b70bc9433f pm3: restore Matlab compatibility by loading file into a variable
In R2016b the variables loaded in the function need to be known in advance
2016-10-06 14:21:25 +02:00
Johannes Pfeifer 17dec97c4f Use raw_data in forecast plots instead of prefiltered data 2016-10-05 19:04:13 +02:00
Houtan Bastani f074c67d59 Merge pull request #1297 from JohannesPfeifer/estimation_fixes
Bugfixes and cosmetic changes related to estimation
2016-10-04 11:10:12 +02:00
Johannes Pfeifer d5233336b5 Make naming in GetPosteriorMeanVariance.m more expressive 2016-10-04 11:00:00 +02:00
Johannes Pfeifer b2984f43c9 GetPosteriorMeanVariance.m: fix bug when number of dropped draws coincided with number of draws in file
In this case, the reported results were NaN
2016-10-04 10:59:01 +02:00
Johannes Pfeifer b4e2f38b6c posterior_sampler_core: condition setting of seed on presence of Octave 2016-10-04 10:58:38 +02:00
Johannes Pfeifer 7ff6c5b2b7 Cosmetic change to posterior_sampler_initialization.m 2016-10-03 22:10:00 +02:00
Johannes Pfeifer bfbd4aa101 Fix header of dyn_autocorr 2016-10-03 21:30:02 +02:00
Houtan Bastani 5f97efe15a octave: don't check with user when deleting directory 2016-10-03 14:49:21 +02:00
Johannes Pfeifer 2fe73fafdc Implement and document keep_kalman_algo_if_singularity_is_detected option 2016-10-02 12:56:28 +02:00
Johannes Pfeifer 3f907efbcd initial_estimation_checks.m: Add proper check for stochastic singularity 2016-10-02 12:55:41 +02:00
Johannes Pfeifer c68038dfc8 imcforecast.m: make sure qz_criterium is properly set 2016-10-02 10:51:47 +02:00
Johannes Pfeifer f553f893c6 Make sure qz_criterium being reset by evaluate_smoother.m does not affect subsequent commands
- adds diffuse_filter as option of calib_smoother
- adds test case for calib_smoother with diffuse_filter
2016-10-02 10:51:47 +02:00
Johannes Pfeifer 1f0c2e3b1c Make sure that options_.qz_criterium is not affected by calls to dynare_estimation.m 2016-10-02 10:51:47 +02:00
Johannes Pfeifer 940ff7fb7d Make sure diffuse_filter triggers qz_criterium>1
Closes #1215
2016-10-02 10:51:47 +02:00
Houtan Bastani 68bc9cb9bb Merge pull request #1281 from rattoma/master
Fixed bug with new harmonized setting of Smoothed Variables, which co…
2016-09-30 16:29:23 +02:00
Houtan Bastani dc0c67bff5 Merge pull request #1289 from rattoma/shock_decomp
Bug fix for provisions in shock_decomposition.m to adapt for the new …
2016-09-30 16:24:43 +02:00
Houtan Bastani acf1cd8600 Revert "bug fix following change in fe7b7819b0. #1280"
This reverts commit 9b1dc544cb.
2016-09-30 16:23:35 +02:00
Houtan Bastani 9b1dc544cb bug fix following change in fe7b7819b0. #1280 2016-09-30 15:47:26 +02:00
Houtan Bastani 4b3c98d953 preprocessor: add keep_kalman_algo_if_singularity_is_detected option to estimation. #1294 2016-09-30 14:31:13 +02:00
Houtan Bastani 9cdd2cc965 add missing semicolon 2016-09-29 12:31:59 +02:00
Houtan Bastani f5a14cc537 octave: add .mat extension to save command 2016-09-28 16:33:46 +02:00
Houtan Bastani de13e98791 octave expects the first argument of strmatch to be a string 2016-09-27 16:49:16 +02:00
Houtan Bastani 744b52d362 fix bug introduced in 1c892bb3e9 2016-09-27 15:28:43 +02:00
Houtan Bastani 1c892bb3e9 octave: try to load the needed package before ending with an error 2016-09-27 15:26:59 +02:00
Michel Juillard 1669b274a2 fixed bug whith recursive estimation and mode_compute=0 2016-09-27 15:11:42 +02:00
Houtan Bastani 2a6b3caa34 when saving, use .mat file extension because Octave doesn’t support it by default 2016-09-26 11:00:41 +02:00
Houtan Bastani e84e81dd01 fix typo 2016-09-23 18:37:49 +02:00
Houtan Bastani c6f4af8894 preprocessor: add nograph option to shock_decomposition. closes #1290 2016-09-23 17:44:36 +02:00
Houtan Bastani e09b4571d7 osr: fix call to strmatch for octave. Closes #1291 2016-09-23 16:13:30 +02:00
Marco Ratto fe7b7819b0 Bug fix for provisions in shock_decomposition.m to adapt for the new syntax on grouping shocks introduced in commit 804d31e8af to close #1280 2016-09-22 18:41:33 +02:00
Johannes Pfeifer b50602962d Account for Matlab 2016b in installer and mex-folder 2016-09-18 16:33:49 +02:00
Stéphane Adjemian (Hermes) e536621b95 Changed help message returned by prior CLI command
Describes option introduced in 5e398559f4
2016-09-14 18:04:01 +02:00
Stéphane Adjemian (Hermes) 5e398559f4 Added option to CLI prior command.
>> prior moments(distribution)

Returns the implied prior mean and standard deviation of the asymptotic
expectation and variance of all the endogenous variables.

The draws of the empirical implied prior distribution for these
asymptotic moments are saved under:

M_.dname/prior/draws/M_.fname_endogenous_variables_prior_draws.mat

and can be used to compute other moments or plot implied prior
densities.
2016-09-14 17:41:01 +02:00
Houtan Bastani 919647477e replace isstring with ischar as isstring is not supported in Octave. Bug introduced in 80049a6d09 2016-09-13 17:34:23 +02:00
Marco Ratto dd69e0c751 Fixed bug with new harmonized setting of Smoothed Variables, which contain already steady-state also at the mode without metropolis 2016-09-12 11:48:52 +02:00
Stéphane Adjemian 7c5a1d8523 Merge pull request #1279 from rattoma/hessian
make computations around invhess more robust numerically.
2016-09-08 23:22:25 +02:00
Stéphane Adjemian bf599ea790 Merge pull request #1274 from JohannesPfeifer/steady_message
Add missing check for display of results in evaluate_steady_state.m
2016-09-07 15:23:17 +02:00
Marco Ratto 96bc8133e7 Merge remote-tracking branch 'remotes/origin/master' 2016-09-07 09:34:28 +02:00
Marco Ratto 5c4f81a26f Bug fixes for conditional forecast.
1) apply chol only for non-diagonal covariances
2) fix wrong index for trend.
3) convert internally constrained_vars is in decision rule order.
2016-09-07 09:27:48 +02:00
Marco Ratto eae0828a40 make computations around invhess more robust numerically. 2016-09-05 12:16:07 +02:00
Johannes Pfeifer a59697352a Add xlim to rplot.m
Prevents excessive white space
2016-09-01 13:57:24 +02:00
Johannes Pfeifer 12d5147093 Replace hline in dyn_latex_table.m by proper booktabs style 2016-08-31 18:26:56 +02:00
Johannes Pfeifer c2b9bd1cff Add missing check for display of results in evaluate_steady_state.m 2016-08-26 18:31:52 +02:00
Stéphane Adjemian e61aa1b407 Merge pull request #1273 from JohannesPfeifer/var_exo_det
Provide informative error message when var_exo_det is used with purel…
2016-08-24 17:08:52 +02:00
Johannes Pfeifer 5996211356 Provide informative error message when var_exo_det is used with purely forward and backward models (thanks to Stefan Boeters for pointing this out) 2016-08-24 15:05:28 +02:00
Johannes Pfeifer c6dc36536d Add specification check of Ramsey policy to initial_estimation_checks.m
Related to #1173
2016-08-24 13:32:11 +02:00
Johannes Pfeifer 582bcb7a8e Add missing Ramsey error code to dsge_likelihood.m 2016-08-24 13:32:11 +02:00
Johannes Pfeifer 41a714ee2b Move check for correct number of instruments to ramsey_policy.m
No reason to trigger the check in every iteration
2016-08-24 13:32:11 +02:00
Johannes Pfeifer 1f26aed03d Condition output of diagnostics in evaluate_steady_state.m on options.debug
Prevents display during iterations like estimation
2016-08-24 13:32:11 +02:00
Johannes Pfeifer eff52f51b7 Ramsey: exit with error code if solver fails at specified tolerance
Also adds penalty if steady state ventures into complex space
2016-08-24 13:32:11 +02:00
Johannes Pfeifer c470e028e1 Ramsey: add check for complex numbers in conditional steady state 2016-08-24 13:32:11 +02:00
Johannes Pfeifer 01f1abb19a Provide dedicated maxit option for Ramsey 2016-08-24 13:32:11 +02:00
Johannes Pfeifer 922410e241 dyn_ramsey_static.m: Cosmetic header fix 2016-08-24 13:32:11 +02:00
Johannes Pfeifer f60aec3be3 Fix number of Lagrange multipliers in evaluate_steady_state.m
Did not account for auxiliary equations
2016-08-24 13:32:11 +02:00
Johannes Pfeifer d65a2f855f Fix display of instrument termination value in evaluate_steady_state.m
Printed initial instead of terminal value
2016-08-24 13:32:11 +02:00
Houtan Bastani b94f30c40a bug fix: accord repmat syntax with that before R2013b 2016-08-24 12:03:07 +02:00
Houtan Bastani d65f32d550 fix bug introduced in 72e84657a7 re eig args. #1266 2016-08-24 11:31:07 +02:00
Stéphane Adjemian 3bc6974bd0 Merge pull request #1271 from JohannesPfeifer/license_test
Add check whether toolbox is installed.
2016-08-23 18:37:06 +02:00
Johannes Pfeifer b4d958d706 dynare_solve.m: account for second mcp-solver in solution check 2016-08-23 17:28:41 +02:00
Johannes Pfeifer cc81f26f0d Adjust error message in steady_.m if PATH is selected on Octave 2016-08-23 17:28:41 +02:00
Johannes Pfeifer 1c070f536a Add headers to various functions 2016-08-23 17:28:41 +02:00
Johannes Pfeifer dfd44c58d6 Fix error messages in get_complementarity_conditions.m 2016-08-23 17:28:41 +02:00
Johannes Pfeifer 2751ab08bb Provide interface to original PATH files and document how to obtain them 2016-08-23 17:28:41 +02:00
Johannes Pfeifer 8f689ce8d2 Correct header of perfect-foresight-models/perfect_foresight_mcp_problem.m 2016-08-23 17:28:41 +02:00
Johannes Pfeifer 3fc011a1b2 Adjust unit test for stack_solve_algo=7 to actually trigger different algorithms 2016-08-23 17:28:41 +02:00
Johannes Pfeifer 6d3c73a906 Harmonize tolerance criterion used in evaluate_steady_state.m
Should be solve_tolf instead of dynatol.f
2016-08-23 17:28:41 +02:00
Johannes Pfeifer 077917b1f4 dynare_solve: use correct termination criterion with stack_solve_algo=7 2016-08-23 17:28:41 +02:00
Johannes Pfeifer 9c9e103627 Make csolve compatible with sparse matrices
Required for stack_solve_algo=7
2016-08-23 17:28:41 +02:00
Johannes Pfeifer dea930d329 lnsrch1.m: do not display debugging info for perfect_foresight_solver
Necessary info does not exist within function to correctly identify problematic variables, leading to crashes with stack_solve_algo=7
2016-08-23 17:28:41 +02:00
Stéphane Adjemian (Hermes) 38e1ec6b1e Fixed bug.
Routine forcst was crashing if at least one of the observed variables,
with measurement error, was not in varlist.
2016-08-23 17:22:41 +02:00
Stéphane Adjemian (Hermes) 5df056b38f Fixed bug (conf_sig).
Use options_.forecasts.conf_sig instead of options_.conf_sig.
2016-08-23 17:22:41 +02:00
Johannes Pfeifer dd22b9609e Add function generate_trace_plots.m that plots trace plots for all estimated parameters 2016-08-23 17:22:41 +02:00
Johannes Pfeifer 1befd3b515 Make trace plots uniquely identified by adding chain number to save names 2016-08-23 17:22:41 +02:00
Johannes Pfeifer 08d53206a9 Port textwidth figure format change to dynare_estimation_1.m 2016-08-23 17:22:41 +02:00
Johannes Pfeifer 894090e6be Add missing 1 to min operator in TeX_loader 2016-08-23 17:22:41 +02:00
Johannes Pfeifer 68e32e8e25 map_calibration.m: Remove manual setting of xticks
Clutters x-axis too much
2016-08-23 17:22:41 +02:00
Johannes Pfeifer bf725787e6 Only generate forecast with measurement error if observed variables are requested 2016-08-23 17:22:41 +02:00
Johannes Pfeifer eaaa0e5045 Fix TeX-names in GSA when mapping is over all parameters, not just structural ones 2016-08-23 17:22:41 +02:00
Johannes Pfeifer 0d7d63fe9b Fix duplicate TeX-label for IRFs 2016-08-23 17:22:41 +02:00
Johannes Pfeifer 054c9bde76 Fix variable naming in simultxdet.m 2016-08-23 17:22:41 +02:00
Johannes Pfeifer 0f72e6ed63 Account for measurement error in non-MCMC forecasts 2016-08-23 17:22:41 +02:00
Johannes Pfeifer 46450c6f1f Change textwidth depending on number of subplots
Prevents overblown figures
2016-08-23 17:22:41 +02:00
Johannes Pfeifer 7050cab9c9 Consider measurement error for uncertainty bands in Bayesian estimation 2016-08-23 17:22:41 +02:00
Johannes Pfeifer daa9d15c75 Improve readability of plots generated by pm3_core.m
- Do not plot zero axis if plots are not centered around it
- Limit decimal points of yticks
2016-08-23 17:22:41 +02:00
Johannes Pfeifer 84ab37fd7a Remove globals from forcst.m 2016-08-23 17:22:41 +02:00
Johannes Pfeifer 424050f380 Make sure IRFs only have full periods as xticks 2016-08-23 17:22:41 +02:00
Johannes Pfeifer 73afe7d02f Change fixed LaTeX figure width into \textwidth scaling
Improves readability
2016-08-23 17:22:41 +02:00
Johannes Pfeifer 9a3414f652 Add missing deblank to conditional_variance_decomposition_mc_analysis.m which crashes otherwise if variables have different name length 2016-08-23 17:22:41 +02:00
Johannes Pfeifer de383a263e Prevent TeX_binder from including itself 2016-08-23 17:22:41 +02:00
Stéphane Adjemian (Hermes) 5b60ffa0f7 Option fast_kalman_filter is also available with kalman_algo=0. 2016-08-22 23:31:02 +02:00
Johannes Pfeifer 73d0a82267 Add comment on logic of singularity testing in univariate_kalman_filter_d.m
See discussion on mailing list 18/06/2016
2016-08-22 19:24:35 +02:00
Johannes Pfeifer 8dc96cafa4 If F is identically 0 in Kalman filter, discard parameter draw instead of treating current observation as unobserved
See discussion on mailing list 18/06/2016
2016-08-22 19:24:35 +02:00
Johannes Pfeifer fa3a71bcae Make warning message in dynare_estimation_1.m more informative 2016-08-22 19:24:35 +02:00
Johannes Pfeifer 75e52ed71d Make sure fast_kalman_filter is only used with diffuse_periods=0
Closes #1234
2016-08-22 19:24:35 +02:00
Johannes Pfeifer af72c1bd22 Add missing comment sign in DsgeSmoother.m 2016-08-22 19:24:35 +02:00
Johannes Pfeifer 20e5d76d54 Fix missing negation in check for fast Kalman filter 2016-08-22 19:24:35 +02:00
Johannes Pfeifer 36ccec75ce Add missing constant 2*pi to missing_observations_kalman_filter_d.m 2016-08-22 19:24:35 +02:00
Johannes Pfeifer 63b8c4d2dd Fix smoother for univariate filter with (correlated) measurement error 2016-08-22 19:24:35 +02:00
Johannes Pfeifer f61453211c Correct header of missing_DiffuseKalmanSmootherH3_Z.m and make sure H is vector 2016-08-22 19:24:35 +02:00
Johannes Pfeifer 178bf4165c Make sure Zflag for augmented state space is correctly set when measurement error is correlated 2016-08-22 19:24:35 +02:00
Johannes Pfeifer f95619b46a Add header info to univariate_kalman_filter.m 2016-08-22 19:24:35 +02:00
Johannes Pfeifer 7c96e22985 Fix bug in dsge_likelihood.m where diagonal of measurement error covariance matrix was not correctly read out
This is a prerequisite for the univariate filter that operates along a vector for H instead of along the diagonal. Because of this, the likelihood in the presence of measurement error was wrong
2016-08-22 19:24:35 +02:00
Johannes Pfeifer 6368636ee0 Move Kalman filter options consistency checks to dynare_estimation_init.m 2016-08-22 19:24:35 +02:00
Johannes Pfeifer 8aaca040b3 Expand check of fast_kalman_filter for presence of block-option 2016-08-22 19:24:35 +02:00
Johannes Pfeifer bffea9b426 Fix error code for inf-likelihood 2016-08-22 19:24:35 +02:00
Johannes Pfeifer e939d51d58 display_problematic_vars_Jacobian.m: Fix bug where exogenous variables in dynamic Jacobian were not accounted for Prevents crashes in debug mode 2016-08-22 19:24:35 +02:00
Johannes Pfeifer ed22b6c4f8 Make datatomfile.m datafiles save name of creator and date 2016-08-22 19:24:35 +02:00
Johannes Pfeifer 15f95cec4a Add comments to Kalman filtering routines 2016-08-22 19:24:35 +02:00
Johannes Pfeifer 39e7c39243 Filter out infinite likelihoods 2016-08-22 19:24:35 +02:00
Johannes Pfeifer df8ad833fb Transform automatic loading of optimal_mh_scale_parameter.mat into option scale_file
Closes #503
2016-08-22 16:27:32 +02:00
Johannes Pfeifer 55e20aab1f Delete unused passing of file in posterior_sampler.m
Ports 919645d30e2361fb4c960ee78e42d401ad3d95ba to master
2016-08-22 16:27:32 +02:00
MichelJuillard 6a6ccfa966 Merge pull request #1257 from JohannesPfeifer/conf_sig
Conf sig
2016-08-21 16:14:28 +02:00
MichelJuillard d27bbe667f Merge pull request #1230 from JohannesPfeifer/load_mh_file
Save chain's proposal density and make load_mh_file and mh_recover load it
2016-08-21 16:12:12 +02:00
MichelJuillard 912409a71c Merge pull request #1268 from JohannesPfeifer/dynare_solve_error_message
Remove error-display from dynare_solve.m
2016-08-21 16:07:35 +02:00
Johannes Pfeifer e7b8222144 Updated header of dynare_solve.m 2016-08-21 11:47:52 +02:00
Johannes Pfeifer 14ab41e414 Move debugging information removed in 335ce74acb to evaluate_steady_state.m where it belongs 2016-08-21 11:45:11 +02:00
Johannes Pfeifer 335ce74acb Remove error-display from dynare_solve.m
Prevents estimation crashing when invalid starting values for steady state computation arise during e.g. mode-finding
2016-08-21 11:44:18 +02:00
Johannes Pfeifer 4d8295afdf Cosmetic fixes to display_problematic_vars_Jacobian.m 2016-08-21 11:28:47 +02:00
Johannes Pfeifer 9d9cb322c8 Make sure fields of estim_params are always properly initialized 2016-08-21 11:24:29 +02:00
MichelJuillard cc5cafdd15 Merge pull request #1254 from JohannesPfeifer/log_density_save
Save log_density at the mode and document oo_.posterior-fields
2016-08-21 11:13:19 +02:00
Michel Juillard 0ebef17df2 fix shocks_decomposition bug introduced in commit 75d699cbfa 2016-08-21 11:11:19 +02:00
MichelJuillard 4750eb64ff Merge pull request #1269 from JohannesPfeifer/eig_R2014a
Condition use of eig to compute left eigenvector on Matlab version
2016-08-21 09:54:47 +02:00
Johannes Pfeifer 72e84657a7 Condition use of eig to compute left eigenvector on Matlab version
Functionality is only supported in Matlab from 2014a/8.3 onwards. Closes #1266
2016-08-20 20:43:20 +02:00
MichelJuillard b5b9f46ff9 Merge pull request #1222 from JohannesPfeifer/paralleldelete
dynareParallelDelete.m: Condition delete-command on existence of file…
2016-08-20 18:37:01 +02:00
Johannes Pfeifer 4a723872eb dynareParallelDelete.m: Condition delete-command on existence of file to prevent warning
Closes #1195
2016-08-20 18:02:04 +02:00
MichelJuillard ee428ffb41 Merge pull request #1251 from JohannesPfeifer/resid_command
Check for complexity of steady state in resid.m
2016-08-20 17:41:22 +02:00
MichelJuillard 5c69c789f6 Merge pull request #1261 from JohannesPfeifer/bvar
BVAR: Save prior and posterior information in oo_
2016-08-20 17:39:34 +02:00
MichelJuillard 2e9725cfd0 Merge pull request #1267 from JohannesPfeifer/estimation_init
Fix two bugs in dynare_estimation_init.m
2016-08-20 17:36:48 +02:00
Michel Juillard 75d699cbfa fixing dates in shocks_decomposition.
Interface still missing
2016-08-20 16:31:25 +02:00
Johannes Pfeifer b1f1826d5f Fix two bugs in dynare_estimation_init.m
Makes sure that i) name field is always present and ii) that number fields of estim_params are only accessed after they have been set by set_prior
2016-08-17 21:47:46 +02:00
MichelJuillard 2b674b27d1 Merge pull request #1265 from JohannesPfeifer/dynare_solve_handle
dynare_solve.m: make sure str2func is only used on strings
2016-08-12 12:06:32 +02:00
Johannes Pfeifer 80049a6d09 dynare_solve.m: make sure str2func is only used on strings
Otherwise, code crashes
2016-08-12 11:59:57 +02:00
Johannes Pfeifer c156a5907c BVAR: Save prior and posterior information in oo_ 2016-08-01 10:41:04 +02:00
Johannes Pfeifer 8dadd1519e Restore backward compatibility of OSR command with maxit and tolf options
Translates these options into optim_opt structure
2016-07-22 16:53:19 +02:00
Johannes Pfeifer 1bd5c7cc0d Disentangle options_.conf_sig and set default to 0.9 2016-07-21 12:17:30 +02:00
Johannes Pfeifer f2f44a0989 Save log_density at the mode and document oo_.posterior-fields 2016-07-20 20:48:24 +02:00
Johannes Pfeifer 72b8c650e5 Add missing logical operator from likelihood functions introduces when removing global penalty 2016-07-18 11:11:43 +02:00
Johannes Pfeifer 578fb04590 Check for complexity of steady state in resid.m
Residuals might be 0, but steady state might be complex, resulting in hard-to-diagnose problems when calling steady.m
2016-07-14 15:04:27 +02:00
Michel Juillard 22f49971bc fixing bug in mcp model setup
makes perfect_foresight_problem more efficient
added test case for stack_solve_algo == 7
2016-07-03 10:56:44 +02:00
Michel Juillard 2f2413e64a addind ep accuracy check 2016-07-03 10:56:44 +02:00
Marco Ratto bf293396b6 Harmonize FilteredVariables with Updated and Smoothed ones, by adding steady state to stored values, both point estimate and MCMC
(cherry picked from commit fd0d7d6d27a7937b135521c4dd76d7fa242d89ab)
2016-07-01 20:40:17 +02:00
Johannes Pfeifer 7621ebb5ea Harmonize spelling and function arguments of collect_latex_files.m
All lower caps and no inputs
2016-07-01 19:09:29 +02:00
Johannes Pfeifer 9275cd089b Add eps-loader to rplot.m
Also makes sure that every single graph is saved when looping over figures
2016-07-01 19:09:29 +02:00
Johannes Pfeifer 2a2d81784b Allow rplot to plot exogenous variables 2016-07-01 19:09:29 +02:00
Stéphane Adjemian (Lupi) 46a149576b Merge branch 'pr#1241' 2016-07-01 16:30:49 +02:00
Stéphane Adjemian (Hermes) 2435040929 Changed default for nonlinear filters. 2016-07-01 11:47:21 +02:00
Stéphane Adjemian (Hermes) b6ecf5fdd0 Updated particles submodule (fixes for apf and cpf). 2016-07-01 11:41:39 +02:00
Johannes Pfeifer 2906cbbddd Add check whether toolbox is installed 2016-06-28 09:39:32 +02:00
Houtan Bastani 848d81eb84 Merge pull request #1238 from rattoma/gsa
Bug fixes for identification with ML
2016-06-27 23:45:05 +02:00
Stéphane Adjemian (Hermes) fcaf457f35 Cosmetic change (code factorization). 2016-06-24 17:35:56 +02:00
Johannes Pfeifer 420e80e538 discretionary_policy: Call steady_state-file to make sure that parameter dependence is correctly handled
Prevents cryptic crashes due to NaN in derivatives of objective function
2016-06-23 20:50:17 +02:00
Johannes Pfeifer 317f958184 Ramsey: Test whether number of instruments matches number of missing equation
Otherwise cryptic crashes can result
2016-06-23 20:48:01 +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
Marco Ratto 25120e54f5 added check for singular values whose eigenvectors contains only ONE column 2016-06-19 11:08:37 +02:00
Stéphane Adjemian (Hermes) 25243712ba Fixed bug on non linux platforms + Cosmetic changes.
The paths to mex files was wrong.
2016-06-17 22:02:34 +02:00
Johannes Pfeifer e214ec2976 Allow for parameter_set=mle_mode in conditional_forecast 2016-06-17 00:21:08 +02:00
Johannes Pfeifer 1c420e6056 Allow for parameter_set=mle_mode in shock_decomposition
Required after writing results into oo_.mle_mode for ML estimation
2016-06-17 00:21:08 +02:00
Stéphane Adjemian (Hermes) 1dea10d478 Updated dynare_config wrt #c7e848948156fe8febca22276a77c9586c565d87 2016-06-17 00:16:06 +02:00
Stéphane Adjemian (Hermes) af9b069830 Moved isoctave routine in base directory. 2016-06-17 00:04:00 +02:00
Stéphane Adjemian (Hermes) d80f6d9a99 Minimize the number of calls to addpath.
These calls have a prohibitive cost...
2016-06-16 23:55:07 +02:00
Stéphane Adjemian 3ae44efbea Merge pull request #1218 from rattoma/gsa
Allow Screening with neighborhood_width sampling.
2016-06-16 22:18:39 +02:00
Stéphane Adjemian (Lupi) 33d35bc3c5 Added quantile routine in missing.
This is missing if the stats toolbox is not available. Integration test
TeX/fs2000_corr_ME.mod was failing because of its absence.
2016-06-16 14:33:57 +02:00
Johannes Pfeifer f86b0a5ad6 Make dyn_forecast.m account for trend_coeffs saving coefficients for all variables 2016-06-16 12:05:38 +02:00
Johannes Pfeifer 3b09ab5424 Save Smoother.Trend and Smoother.Constant after MCMC 2016-06-16 12:05:38 +02:00
Johannes Pfeifer 1c84ccdc34 Save trend and constant for all variables in smoother 2016-06-16 12:05:38 +02:00
Johannes Pfeifer 3efe283bf0 Make oo_.Smoother.TrendCoeff have size of endogenous variables
Sets coefficients with unspecified trends to 0, allowing to later use the trend_var command for setting trends
2016-06-16 12:05:38 +02:00
Johannes Pfeifer 5d6d1336ef Enable filter_covariance option in posterior sampling 2016-06-16 12:05:38 +02:00
Stéphane Adjemian (Hermes) 65ae97d37d Fixed bug.
For uniform priors use the prior mean when computing the prior
moments (prior mode is not defined).
2016-06-16 11:59:47 +02:00
Stéphane Adjemian (Hermes) 789f21257e Avoid side effects on globals (prior CLI and write_latex_prior_table commands). 2016-06-16 11:57:16 +02:00
Stéphane Adjemian (Hermes) 2c074d7cd2 Check that a prior is defined in prior CLI command
Behaviour consistent with the logic introduced in commit
64d01a806e.
2016-06-16 11:16:23 +02:00
Stéphane Adjemian (Hermes) a91e4dec75 Bug fixes.
Introduced when we increased the size of the mat files saved on
disk (see commit #e2942662479f822cd4ca1251158f0b5037c3a446).
2016-06-16 11:15:22 +02:00
Stéphane Adjemian (Hermes) 64d01a806e Fixed behaviour of write_latex_prior_table command 2016-06-16 10:38:40 +02:00
Johannes Pfeifer e94a698a9b Implement write_latex_prior_table.m
Fixes and replaces write_table_prior.m and uses consistent name. Also includes documentation
2016-06-15 16:47:39 +02:00
Stéphane Adjemian (Lupi) fcb738616c Fixed bug in extened_path_mc.
Wrong calling sequence to the routine defining the shocks.
2016-06-15 16:01:08 +02:00
Stéphane Adjemian (Lupi) 1e7fc89e8d Replaced filesep by hard coded slash.
See 57501f802e.
2016-06-15 13:14:55 +02:00
Stéphane Adjemian (Lupi) 57501f802e Revert "Cosmetic change."
This reverts commit 544da84e73.

On Windows filesep returns a backslash ('\') as expected but
LaTeX, even on Windows, only understands slashes ('/') when
defining paths (for graphic or file inclusion).
2016-06-15 13:07:59 +02:00
Stéphane Adjemian (Hermes) 473d335851 Fixed bug (wrong structure names). 2016-06-15 00:35:40 +02:00
Johannes Pfeifer 029e9495ba Fix bug in dsge_var_likelihood.m where constant was not considered for dof when Gamma function was computed
Does not affect the maximum of the posterior as it only affects constant term
2016-06-15 00:30:28 +02:00
Johannes Pfeifer 4486d098b5 Save dsge_var objects at the mode 2016-06-15 00:30:28 +02:00
Johannes Pfeifer 2cf882fec5 Remove comments on dynare_estimation_1.m after implementing store_smoother_results 2016-06-15 00:30:28 +02:00
Johannes Pfeifer d08fd37986 Do not set oo_.posterior.optimization-fields when mh_posterior_mode_estimation is used 2016-06-15 00:30:28 +02:00
Johannes Pfeifer 552a9b5230 Fix bugs previously introduces in dynare_estimation_1.m related to penalty function 2016-06-15 00:30:28 +02:00
Johannes Pfeifer 2446ab02ba Transform persistent variables of newrat.m into function arguments 2016-06-15 00:30:28 +02:00
Johannes Pfeifer 0c00e28799 Remove objective_function_penalty_base 2016-06-15 00:30:28 +02:00
Johannes Pfeifer 329b91d717 Harmonize output of objective functions
Closes #1149
Mirrors 1ad8df4635
2016-06-15 00:30:28 +02:00
Johannes Pfeifer 0edd8e2025 Add penalty_hessian.m and penalty_objective_function.m 2016-06-15 00:30:28 +02:00
Stéphane Adjemian (Hermes) 544da84e73 Cosmetic change.
Systematically use filesep instead of '/'.
2016-06-14 22:49:01 +02:00
Stéphane Adjemian (Hermes) 96128b32ab Fixed bug (missing folder separator). 2016-06-14 21:53:14 +02:00
Stéphane Adjemian (Hermes) 2a65e7a85a Merge branch 'master' into johannes-identification-fixes 2016-06-14 18:17:36 +02:00
Johannes Pfeifer fff88f1dc7 display_estimation_results_table.m: Move TeXEnd inside of if-clause to prevent crashes 2016-06-14 15:50:48 +02:00
Johannes Pfeifer b3877b3a9e Save chain's proposal density and make load_mh_file and mh_recover load it
Closes #504
2016-06-14 15:09:05 +02:00
Johannes Pfeifer faab010753 Change file ending from TeX to tex to prevent problems on Linux
Related to b454c28096
2016-06-14 12:13:48 +02:00
Houtan Bastani 5303d7079b submodule update: particles 2016-06-14 12:02:15 +02:00
Johannes Pfeifer 59cbee2b56 Provide output on posterior variance decomposition
Closes #1219
2016-06-14 11:53:38 +02:00
Johannes Pfeifer 5ca4204806 Only set texnames in McMCDiagnostics.m if TeX is requested 2016-06-14 11:53:38 +02:00
Johannes Pfeifer dc1c5f182c Make gsa function correctly extract parameter (TeX) names 2016-06-14 11:53:38 +02:00
Johannes Pfeifer 6be02ef086 Add caller function info to dyn_latex_table.m 2016-06-14 11:53:38 +02:00
Johannes Pfeifer 55b2cd6f4c Make sure underscores and backslashes are correctly handled in TeX-loaders of gsa 2016-06-14 11:53:38 +02:00
Johannes Pfeifer 7325dbe54e Expand collect_LaTeX_Files.m to gsa redform subfolders 2016-06-14 11:52:49 +02:00
Johannes Pfeifer a02f7cc8f3 Correct header of DsgeSmoother.m 2016-06-14 11:52:49 +02:00
Johannes Pfeifer 42f47e0f55 Correctly indent filt_mc_.m 2016-06-14 11:52:49 +02:00
Johannes Pfeifer c3e1c01864 Enable TeX output in rmse-mapping of gsa 2016-06-14 11:52:49 +02:00
Johannes Pfeifer cb9095977e Allow for underscores in TeX-output of gsa 2016-06-14 11:52:49 +02:00
Johannes Pfeifer 59eec342d2 Allow for second header string in dyntable.m 2016-06-14 11:52:49 +02:00
Johannes Pfeifer d02f8d0377 Allow for text-command in math environment by using amsmath package in collect_LaTeX_Files.m 2016-06-14 11:52:49 +02:00
Johannes Pfeifer f76a353d65 Allow for underscores in first header element in dyn_latex_table.m 2016-06-14 11:52:49 +02:00
Johannes Pfeifer 2c4c7558f4 Add TeX output to stab_map_2.m 2016-06-14 11:52:49 +02:00
Johannes Pfeifer 11687d8c66 Expand collect_LaTeX_Files.m to gsa Output folder 2016-06-14 11:52:49 +02:00
Johannes Pfeifer 74212ab199 Delete redundant legend input argument in filt_mc_.m that creates warning message in Matlab 2016-06-14 11:52:49 +02:00
Johannes Pfeifer ed1dbcac53 Fix setting of names and parameter names in stab_map_ 2016-06-14 11:52:49 +02:00
Johannes Pfeifer cba10b0d90 Bugfix for setting tex-names in mcf_analysis.m 2016-06-14 11:52:49 +02:00
Johannes Pfeifer 6f410f4cc1 Provide LaTeX output for model_comparison.m 2016-06-14 11:52:49 +02:00
Johannes Pfeifer f5c08fc0e8 Create LaTeX output for Smirnov tests 2016-06-14 11:52:49 +02:00
Johannes Pfeifer 9b82c72e4f Remove global options structure from dyntable 2016-06-14 11:52:17 +02:00
Johannes Pfeifer 849505ec62 Fix display of NaN parameters in TeX-table in ident_bruteforce.m 2016-06-14 11:52:17 +02:00
Johannes Pfeifer f851252b25 Pass options_ to dyn_latex_table.m to make it honor noprint option 2016-06-14 11:52:17 +02:00
Johannes Pfeifer c6f98433d2 Reset colormap to jet in plot_identification.m
Necessary after Matlab changed default
2016-06-14 11:52:17 +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
Johannes Pfeifer e294266247 Increase default MaxNumberOfBytes to 100 MB
Closes #330
2016-06-14 11:51:14 +02:00
Houtan Bastani b454c28096 fix latex compilation on linux. #1207 2016-06-14 11:37:16 +02:00
Johannes Pfeifer 7ff453846a Fix passing of compflag in dyn_mex.m
Fixes 83eeafa32c
2016-06-14 10:45:44 +02:00
Houtan Bastani 83eeafa32c fix mex file compilation with MSVC. Closes #1227 2016-06-14 10:34:14 +02:00
Houtan Bastani 2bbfb8762b fix copyright notices 2016-06-14 10:30:57 +02:00
Michel Juillard f145a50a85 extend path: removed global options_ 2016-06-09 12:02:48 +02:00
Michel Juillard 4a6e14ea95 extended path: removed option for lcppath 2016-06-09 12:02:48 +02:00
Michel Juillard 8fa29513f3 extended path: fixing bug for order > 2 and several shocks 2016-06-09 12:02:48 +02:00
Stéphane Adjemian (Hermes) 335a188dac Fixed bug in extended path.
Allow innovations with zero variance (ie do not force removal of the
variables from the varexo list).
2016-06-09 10:32:25 +02:00
Marco Ratto fbc71aa95c Allow Screening with neighborhood_width sampling.
Allow calibrated values for neighborhood_width sampling to violate prior bounds.
2016-06-07 12:22:39 +02:00
Stéphane Adjemian (Charybdis) 3d16707dd9 Updated particles submodule (bug fixes). 2016-06-01 19:56:09 +02:00
Stéphane Adjemian (Charybdis) dc1cfb4509 Updated particles submodule (bug fix). 2016-06-01 17:12:39 +02:00
Stéphane Adjemian (Charybdis) 392977d4ef Changed default parameters for unscented transform (Particle filters). 2016-06-01 17:01:23 +02:00