Commit Graph

282 Commits (a01b34756471eab60373416c3242912f19a18cae)

Author SHA1 Message Date
Houtan Bastani b48a5d58a3 Revert "preprocessor: add options to var_model"
This reverts commit cbb099f7d9789dc7616f770ed98412309ea6ec4d.
2017-05-16 11:21:50 +02:00
Houtan Bastani 644f1345ea preprocessor: add var_estimation statement 2017-05-10 17:23:40 +02:00
Houtan Bastani 1a1e2c1810 preprocessor: VAR restrictions 2017-05-10 16:25:01 +02:00
Stéphane Adjemian (Charybdis) d7336eb317 Merge branch 'master' into ecb-master
Model inversion of backward looking models.
2017-05-02 23:15:42 +02:00
Stéphane Adjemian d72cadeed7 Merge pull request #1441 from JohannesPfeifer/ksstat
Remove redundant ksstat option
2017-04-29 18:00:25 +02:00
Johannes Pfeifer ec6756db0e Remove redundant ksstat option
Closes #1431
2017-04-27 11:08:17 +02:00
Stéphane Adjemian (Charybdis) bac51e0a0e Added option rescale_prediction_error_covariance. 2017-04-26 18:22:03 +02:00
Houtan Bastani 35adc47c14 Merge branch 'master' into ecb-master 2017-04-14 11:35:43 +02:00
Houtan Bastani 40c26edcfc preprocessor: add options to var_model 2017-04-14 11:21:47 +02:00
Houtan Bastani 053407314d preprocessor: add option to write equation tags in latex output. closes #477 2017-04-04 16:08:30 +02:00
Stéphane Adjemian (Charybdis) f9a803f4a9 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 bc9a619d8a preprocessor: initial_condition_decomposition front end. closes #1425 2017-03-31 13:19:04 +02:00
Houtan Bastani 59322da2a7 preprocessor: add plot_shock_decomposition command. closes #1406 2017-03-24 12:11:36 +01:00
Houtan Bastani a020daef37 var_expectation: first draft 2017-03-22 09:41:09 +01:00
Houtan Bastani 85a7d72515 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) 80e322d319 Added declaration of observed exogenous variables.
With integration test.
2017-03-22 09:41:09 +01:00
Houtan Bastani d2dfb65602 preprocessor: add realtime_shock_decomposition statement. #1406 2017-03-21 15:20:32 +01:00
Houtan Bastani bc5ac82612 preprocessor: add init_state option to shock_decomposition 2017-03-21 12:48:11 +01:00
Stéphane Adjemian (Charybdis) 3c79e231c7 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 2446ab02ba4b3ed88c9c5021aced076078d96007.

An option is available for computing the hessian with the penalized
objective function.
2017-02-08 13:07:25 +00:00
Johannes Pfeifer 2a442561c6 Implement preprocessor interface for posterior_nograph option 2016-12-26 13:07:46 +01:00
Johannes Pfeifer a00bf1fa90 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 3f33ab5425 Add Raftery/Lewis (1992) convergence diagnostics 2016-12-17 17:22:05 +01:00
Johannes Pfeifer 661b44ede3 robust_lin_solve: Fix mistakes introduced in 4b83c1bf763fe5029c94b7e55aba257135426de1
Interface was still missing and documentation of option was in wrong place in manual and wrong
2016-12-01 17:31:29 +01:00
Johannes Pfeifer 9d4b5825da Add smoothed state uncertainty to Kalman smoother routines 2016-11-04 09:23:55 +01:00
Houtan Bastani f20beac29c preprocessor: add keep_kalman_algo_if_singularity_is_detected option to estimation. #1294 2016-09-30 14:31:13 +02:00
Houtan Bastani 64b9468649 preprocessor: add tolx to perfect_foresight_solver 2016-07-21 09:40:19 -04:00
Johannes Pfeifer 78a90b7c20 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 (Charybdis) 9415ed8feb Added new option for setting weights in CPF algorithm. 2016-06-01 16:29:53 +02:00
Houtan Bastani 275cb6c2b0 preprocessor: support sub lists in posterior_sampling_opt option, hence removing tarb_optim. #1177 2016-05-19 14:37:05 +02:00
Houtan Bastani 57afa7d80f preprocessor: rework posterior sampler options, #1177 2016-05-19 14:37:05 +02:00
Houtan Bastani 48928c61ce Revert "preprocessor: add params_derivs_order to identification and sensitivity. #1187"
This reverts commit 6192a6a7765e7bde388f4a6feac4362d1e9fd284.
2016-05-18 10:33:45 +02:00
Houtan Bastani b898bfea6e preprocessor: add params_derivs_order to identification and sensitivity. #1187 2016-05-17 17:18:16 +02:00
Houtan Bastani adf1c0392b preprocessor: add analytic_derivation_mode option to identification and sensitivity. #1187 2016-05-17 15:32:51 +02:00
Houtan Bastani ca1879fe7d preprocessor: interface for osr_params_bounds. #948 2016-05-10 18:01:00 +02:00
Michel Juillard 1df83c1807 add option colormap for shocks_decomposition 2016-04-15 09:02:53 +02:00
Michel Juillard 94f1f9883a adding groups of shocks for shock_decomposition
consistency checks, documentation and test case
are still missing
2016-04-15 09:02:53 +02:00
Sébastien Villemot 42d166e272 Fix compatibility with Flex 2.6.
In Flex 2.6, the C++ scanner changed. yyout is now a reference (and no
longer a pointer).
2016-03-14 16:28:24 +01:00
Houtan Bastani f0ff0d911b preprocessor: allow arbitrary partitioning of variables (removes long_name keyword) 2016-02-26 16:47:17 +01:00
Michel Juillard 1a12a3de0f adding new option 'fast_kalman_filter' implementing Ed Herbst 2012 approach 2015-11-28 17:38:00 +01:00
Houtan Bastani 035b6ea463 Revert "preprocessor: add utf-8 tokenizing"
This reverts commit f2cc9d389954f16dbb88c3401e90c7981e3599d6.

This commit causes warnings in Flex
2015-10-30 18:27:41 +01:00
Houtan Bastani d587a5133f preprocessor: change prior_posterior_function into two arguments. closes #1076 2015-10-14 11:02:35 +02:00
Houtan Bastani 3907462ae9 preprocessor: prior_posterior_function: change option 'prior_posterior_sampling_draws' to 'sampling_draws' #1076 2015-10-13 17:41:31 +02:00
Houtan Bastani 863e13db55 preprocessor: interface for prior_posterior_function command. closes #1076 2015-10-13 17:16:10 +02:00
Johannes Pfeifer ce1ebac039 Allow suppressing density of smoother and forecast objects 2015-10-12 15:34:52 +02:00
Houtan Bastani 6c4f7c0898 preprocessor: add relative_irf option to irf_calibration block. closes #720 2015-09-07 11:49:17 +02:00
Houtan Bastani 7cc90013cd Merge branch 'julia' 2015-09-01 11:35:16 +02:00
Houtan Bastani 73a1ca92c0 preprocessor: posterior_kernel_density option to estimation. #1035 2015-08-25 11:09:08 +02:00
Michel Juillard 203ddeba3d finalize svar_global_identification_check 2015-08-24 14:53:27 +02:00
Houtan Bastani 33f2e2077c preprocessor: add utf-8 tokenizing 2015-08-17 17:09:40 +02:00
Johannes Pfeifer 8c1cd0e8ba Add option for storing contemporaneous correlation 2015-08-11 11:27:55 +02:00