Commit Graph

1543 Commits (e3c12f509465303cec2648810184d865939466c3)

Author SHA1 Message Date
Houtan Bastani 2e9152fed0 preprocessor: clean up commit 63180c9e59 2017-05-04 16:54:47 +02:00
Houtan Bastani 19b50c265b preprocessor: aesthetic fix: make writing to .m file nicer 2017-05-04 16:50:19 +02:00
Houtan Bastani 63180c9e59 var_model: allow non model-block variables in VAR 2017-05-04 16:15:33 +02:00
Stéphane Adjemian (Charybdis) c2556cc80e Merge branch 'master' into ecb-master
Model inversion of backward looking models.
2017-05-02 23:15:42 +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 451646ff16 Remove redundant ksstat option
Closes #1431
2017-04-27 11:08:17 +02:00
Stéphane Adjemian (Charybdis) d6e1d0baa5 Added option rescale_prediction_error_covariance. 2017-04-26 18:22:03 +02:00
Houtan Bastani 68d24d33af preprocessor: change trend test to warning. #1389 2017-04-20 18:41:28 +02:00
Houtan Bastani db535236b2 Merge branch 'master' into ecb-master 2017-04-14 11:35:43 +02:00
Houtan Bastani cbb099f7d9 preprocessor: add options to var_model 2017-04-14 11:21:47 +02:00
Johannes Pfeifer 59ab66f9a0 Fix typo in error message 2017-04-06 08:41:12 +02:00
Houtan Bastani 636b959a02 preprocessor: add warning for potential non-linearities in model declared linear. #1404 2017-04-05 11:07:34 +02:00
Houtan Bastani 753d8a17f0 preprocessor: move equation tags out of dmath mode, include all equation tags in one set of brackets, allow equation tags to be interpreted as latex, modify manual and test accordingly. #477 2017-04-05 11:01:25 +02:00
Houtan Bastani 14f4544a29 preprocessor: add option to write equation tags in latex output. closes #477 2017-04-04 16:08:30 +02:00
Houtan Bastani 052d62e150 preprocessor: remove unused filed histval_present from mod_file_struct 2017-04-03 15:23:01 +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
Houtan Bastani 1891ab70f8 preprocessor: add options plot_init_date and plot_end_date to plot_shock_decomposition 2017-03-31 14:38:44 +02:00
Houtan Bastani ac851b0bac preprocessor: initial_condition_decomposition front end. closes #1425 2017-03-31 13:19:04 +02:00
Johannes Pfeifer 8d2dcc422f Clarify error message if model-local variable was already used on RHS 2017-03-29 14:49:37 +02:00
Houtan Bastani 12f8e5f512 plot_shock_decomposition: remove argument to steadystate option 2017-03-28 12:15:00 +02:00
Houtan Bastani b3ecc8c003 preprocessor: add plot_shock_decomposition command. closes #1406 2017-03-24 12:11:36 +01:00
Stéphane Adjemian (Charybdis) f9bf125562 Removed initialization for dates and dseries.
This is not required with the new oop interface.
2017-03-22 09:41:10 +01:00
Houtan Bastani 476a8a27cc preprocessor: add aux var/equation when var_model is of order > max lag of its variables in the model block 2017-03-22 09:41:10 +01:00
Houtan Bastani 19dc4deb9f var_forecast: make calls more efficient 2017-03-22 09:41:10 +01:00
Houtan Bastani df1ef46135 var_forecast: only make one call per var model, regardless of forecast horizon 2017-03-22 09:41:09 +01:00
Houtan Bastani 4d01f8c975 var_forecast: fix writing in dynamic file 2017-03-22 09:41:09 +01:00
Houtan Bastani 25a2c3bc22 stoi was introduced in C++11. replace with stringstream 2017-03-22 09:41:09 +01:00
Houtan Bastani c8f432d2f4 var_forecast: create separate VarExpectationNode class to better handle calls to .m function that calculates var forecasts 2017-03-22 09:41:09 +01:00
Houtan Bastani 5e53c7909b var_expectation: create possibility for h-step-ahead forecast 2017-03-22 09:41:09 +01:00
Houtan Bastani dfce1ece1e var_forecast: create individual .m files for each forecast 2017-03-22 09:41:09 +01:00
Houtan Bastani 98a86d341c var_expectation: first draft 2017-03-22 09:41:09 +01:00
Houtan Bastani c99aa4aed0 var_forecast: move var declaration from options_ to M_, simplify structure in which it is stored 2017-03-22 09:41:09 +01:00
Houtan Bastani b8c5dfa472 VAR(p) forecast first draft, preprocessor for var command and backend for forecast 2017-03-22 09:41:09 +01:00
Stéphane Adjemian (Charybdis) 71c0e7f40c Remove preprocessor warning.
Do not issue a warning when observed exogenous variables do not appear
in the model.
2017-03-22 09:41:09 +01:00
Stéphane Adjemian (Charybdis) e1033c76b9 Added declaration of observed exogenous variables.
With integration test.
2017-03-22 09:41:09 +01:00
Houtan Bastani 5282e737e7 preprocessor: add realtime_shock_decomposition statement. #1406 2017-03-21 15:20:32 +01:00
Houtan Bastani e6f5316b99 preprocessor: fix bug introduced in a4eb8d6b91 2017-03-21 14:07:30 +01:00
Houtan Bastani a4eb8d6b91 preprocessor: add init_state option to shock_decomposition 2017-03-21 12:48:11 +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
Johannes Pfeifer 569de10511 Make sure block-decomposed model returns with correct error code if Inf or NaN is encountered
Missing from 5f85d3a200 where only residual was set to error code. If oo_.deterministic_simulation.status is not set to 0, model will erroneously be considered as solved and homotopy will not be triggered.
2017-03-17 10:07:13 +01:00
Houtan Bastani ea13b12cf2 preprocessor: add lag info to equation cross references. closes #1398 2017-03-10 16:59:52 +01:00
Houtan Bastani 33b38ab643 preprocessor: write error messages to cerr instead of cout, replace \n with endl 2017-03-01 12:44:31 +01:00
Houtan Bastani 2d25858886 preprocessor: fix bug that caused temporary terms not to be printed for the parameter derivatives of the static model. closes #1397 2017-03-01 12:20:55 +01:00
Houtan Bastani 0b52b778ed preprocessor: for consistency, use equations.size() instead of equation_number() in classes that have equations as a field 2017-02-24 11:20:54 +01:00
Houtan Bastani 39855c95d2 preprocessor: aesthetic fix 2017-02-10 12:47:43 +01:00
Houtan Bastani fabca90345 preprocessor: aesthetic fix 2017-02-09 16:23:42 +01:00
Houtan Bastani 7ced4b5580 preprocessor: change error to warning because we don’t end processing in this situation; fix error message 2017-02-09 16:21:18 +01:00
Houtan Bastani edd2e98086 preprocessor: replace exit(1) with exit(EXIT_FAILURE) 2017-02-09 12:46:37 +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
Houtan Bastani 5b6a888d7f preprocessor: fix typo 2017-01-31 17:11:03 +01:00