Commit Graph

5811 Commits (115b16236bf83b2e4e7f01a69ca56104665b6c0a)

Author SHA1 Message Date
Johannes Pfeifer 115b16236b Fix bug in dsge_likelihood for univariate_kalman_filter
ÿÿÿ

Lines 399-418 set the measurement covariance matrix and save it to H1.
If it is diagonal, it is not recomputed again as
correlated_errors_have_been_checked is 0. In that case, lines 654-675
are not entered and univariate_kalman_filter tries to use the old H, but
it was named H1 before, leading to a crash. Changing the name of the
matrix H in lines 654-682 to H1 assures that univariate_kalman_filter
uses the correctly updated matrix of the
~correlated_errors_have_been_checked and the previously computed H1 in
the other cases.
2013-05-17 23:54:17 +02:00
Johannes Pfeifer 787b361afa Make manual on drop-option more explicit
Closes #396
2013-05-14 11:29:12 +02:00
Johannes Pfeifer cc5527c843 Move filling of decision rules to respective orders
Previously, with pruning set to 1 and the option k_order_solver, the
fields like dr.ghu were not set in k_order_pert, even at order=1. But
stoch_simul tries to use them to display the decision rules. Similarly
for order 2. The respective setting of the decision rule fields is now
moved to the respective cases and always conducted at order 1 and
conducted at order 2. This avoids crashes if decision rules of
theoretical moments are requested.
2013-05-13 19:23:38 +02:00
Johannes Pfeifer 42081aec88 Filter out stale loglinear option
With a previously set loglinear option, both k_order_pert and
stochastic_solvers at order>1 transformed the first order solution, but
kept the higher order terms untransformed. Now, both functions output an
error.
2013-05-08 18:18:34 +02:00
Johannes Pfeifer 29ff66856a Fix typo in Manual 2013-05-07 10:34:18 +02:00
Johannes Pfeifer 996ff3bfd3 Remove mexErrCheck from k_order_pert to make it obey the noprint-option
Currently, all stochastic solvers put the error code to info(1) and use
print_info to output the error. The only exception was k_order_pert,
which immediately created an error. Thus, the use of k_order_pert did
not allow for continuing after encountering errors, because only
print_info obeys the noprint-option. Replacing mexErrCheck by setting
info should deliver the correct behavior.
2013-05-02 14:38:47 +02:00
Johannes Pfeifer 7094a45f6d Revert "Make error message for prior violation more explicit by adding second argument to info()"
This reverts commit 2815d5fbd4.
2013-05-02 14:31:29 +02:00
Johannes Pfeifer 1e0a728906 Fix bug introduced in 27fda91c8c
For parallel computations, the relative path is necessary.
2013-05-02 14:27:05 +02:00
Sébastien Villemot 188d269467 Merge pull request #379 from JohannesPfeifer/master
Bugfix in initial_estimation_checks; making graphs more explicit
2013-04-30 05:05:04 -07:00
Sébastien Villemot 5965c8e360 Merge pull request #382 from rattoma/master
bug fixes in mode_compute=5 and gsa
2013-04-30 05:03:15 -07:00
Marco Ratto ab5b922e46 -) fixed bug introduced in commit 66527df;
-) estimation options for data set must be given also when ppost=1 (fix in testsuite);
2013-04-30 11:41:13 +02:00
Marco Ratto afc2454913 Bug fix: when no analytic derivation and change in x very small. 2013-04-30 11:38:18 +02:00
Johannes Pfeifer 50f97ffc16 Capitalize figure title in mh_autocorrelation_function 2013-04-29 23:40:22 +02:00
Johannes Pfeifer fe6f63aa2e Fixed bug in name2index
Previously, the strings were concatenated, rendering calls to strmatch
wrong. Changed to cell arrays on which strmatch operates.
2013-04-29 23:17:11 +02:00
Johannes Pfeifer 749fff9dcb Make traceplot and mh_autocorrelation save graphs; add legend 2013-04-29 23:15:44 +02:00
Johannes Pfeifer c0f12968ee Create graph folder in rplot if it does not exist 2013-04-29 22:30:52 +02:00
Sébastien Villemot 70ccb1d0b7 Documentation of new differentiate_forward_vars option
Ref #351
2013-04-29 17:56:22 +02:00
Sébastien Villemot d0510261ee Merge pull request #380 from rattoma/master
GSA fixes for rmse analysis
2013-04-29 08:04:07 -07:00
Marco Ratto f5a6835c63 Fixed bug with calls to dsge smoother which were broken with missing values;
Proper use of dataset_ structure and remove the dangerous dat_fil_ utility;
Added r2 in output.
2013-04-29 13:52:20 +02:00
Johannes Pfeifer 5798501da0 Adds mod-file of a well-documented non-linear New Keynesian model with
recursive formulation of price setting equations where the steady state
file is used to update parameters and invoke a non-linear solver.
2013-04-27 21:12:50 +02:00
Johannes Pfeifer 3c27394561 Fix bug introduced in df611e9e9d 2013-04-27 16:53:08 +02:00
Johannes Pfeifer 69372d290d Make Stability Mapping more readable.
Increased linewidth and changed color to differentiate from background
grid.
2013-04-27 16:43:01 +02:00
Johannes Pfeifer 27fda91c8c Replace relative by absolute filenames
Closes #329
2013-04-27 16:36:10 +02:00
Johannes Pfeifer dc8bc3ef65 Use filesep instead of '/' 2013-04-27 16:22:25 +02:00
Johannes Pfeifer 4b4e7ad671 Make rplot save figures in graph-folder and obey nodisplay option
option
2013-04-27 14:58:16 +02:00
Johannes Pfeifer 76961ee59b Provide RMSE with more expressive figure titles 2013-04-27 12:53:06 +02:00
Johannes Pfeifer 935f8eb025 Provide Redform Mapping with more expressive figure titles 2013-04-27 12:52:48 +02:00
Johannes Pfeifer df611e9e9d Make sure GSA only computes statistics on original endogenous variables, not auxiliary ones 2013-04-27 11:53:35 +02:00
Johannes Pfeifer 32417def82 Provide stability mapping with more expressive figure titles 2013-04-27 10:58:36 +02:00
Johannes Pfeifer c0797ea283 Suppress output of row_header_width 2013-04-27 08:28:24 +02:00
Johannes Pfeifer dce8e74c33 Fix bug where initial_estimation_checks was performed on prior mean instead of specified mode
If the mode_file option was used, xparam1 was reloaded from the
mode-file after the initial checks, sometimes leading to very cryptic
errors. Now the initial checks already load the correct parameter
vector.
2013-04-26 21:10:36 +02:00
Johannes Pfeifer 2815d5fbd4 Make error message for prior violation more explicit by adding second argument to info() 2013-04-26 20:20:23 +02:00
Johannes Pfeifer d3457ee4d9 Make UnivariateSpectralDensity save plots to graphs-folder
Also make the plots obey the nodisplay option
2013-04-26 19:59:32 +02:00
Johannes Pfeifer 58b6c3122f Cosmetic Changes to Graphs 2013-04-26 19:57:36 +02:00
Houtan Bastani 4ba3815a0d Merge pull request #377 from JohannesPfeifer/master
Fix small bug in print_info
2013-04-26 08:48:45 -07:00
Johannes Pfeifer 9310467658 Fix crash in print_info
If info(2) is really empty. it cannot be accessed by isempty.
2013-04-26 17:39:35 +02:00
Houtan Bastani 8f65eafb8f fix typo 2013-04-26 15:04:56 +02:00
Sébastien Villemot e783084126 Fix comment blocks 2013-04-26 09:50:56 +02:00
Houtan Bastani 1f6cfb7f15 faster load_csv_file_data on Matlab using importdata 2013-04-25 18:40:19 +02:00
Houtan Bastani cc923e5315 reporting: @graph: add shade_color option 2013-04-25 18:40:02 +02:00
Houtan Bastani e3bb2760cf reporting: @graph: add option shade_opacity 2013-04-25 18:40:02 +02:00
Sébastien Villemot 75b5f1d18a Add new model option 'differentiate_forward_vars' (ref. #351) 2013-04-25 18:09:31 +02:00
Sébastien Villemot 50f2d00ad8 Detect if an extended_path statement is present
Unused for the time being
2013-04-25 18:07:32 +02:00
Sébastien Villemot 35e77136c3 Remove obsolete stuff from pow/log aux vars 2013-04-25 17:26:39 +02:00
Sébastien Villemot d219d2b800 Add 3rd order unit test to testsuite 2013-04-25 12:24:29 +02:00
Sébastien Villemot 3d56792124 Compatibility fixes for Octave 2013-04-25 12:22:32 +02:00
Sébastien Villemot d67f4002f1 Merge pull request #376 from JohannesPfeifer/master
Add Andreasen et al pruning at order=3, add unit test for third order perturbation
2013-04-25 03:18:07 -07:00
Johannes Pfeifer c55d0a3ae4 Remove pruning_forecast_approximation introduced in cdb7b01879 2013-04-25 12:04:44 +02:00
Johannes Pfeifer 7e63b562d9 Add unit test for order=3
The unit test uses the policy rules of Fernandez-Villaverde et al.
(2011)'s "Risk matter" derived from Mathematica to compare them to the
Dynare matrices. If the policy functions differ by more than 1e-9, an
error is produced.
2013-04-24 23:12:52 +02:00
Johannes Pfeifer cdb7b01879 Implement Andreasen et al. 2013 pruning at order
Implements and documents the Andreasen et al. 2013 pruning at order=3
and sets it as the default at this order. Michel's pruning based on the
approximation of the forecast function has been assigned the option
pruning_forecast_approximation. The preprocessor-interface still needs
to be added for this option. Moreover, more documentation/a reference
what this option does is needed. At a later point, we might change the
default to Michel's approach.
2013-04-24 23:07:01 +02:00