Commit Graph

286 Commits (cb411e5642ecd6978c86d4ad3dfca15fa840c913)

Author SHA1 Message Date
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 58951045d9 preprocessor: JSON output for statements, #1387 2017-02-20 11:23:10 +01:00
Houtan Bastani d3455d42c1 preprocessor: don’t automatically declare external functions 2017-01-27 20:36:26 +01:00
Houtan Bastani e3fe88d9d8 preprocessor: handle undeclared external functions and lagged variables 2017-01-27 20:36:26 +01:00
Houtan Bastani ff3b2d0ae3 keep track of all times an undeclared variable is encountered 2017-01-27 20:36:26 +01:00
Houtan Bastani a9de8dd0a0 preprocessor: issue warnings for undeclared model variables when the end of the model block is encountered. #1286 2017-01-27 20:36:26 +01:00
Houtan Bastani 9b0fbdb4fe ramsey_policy: accept all endogenous variables in var_list_, even auxiliary variables. closes #1355 2016-12-27 14:08:50 +01:00
Houtan Bastani 14fb833165 preprocessor: fix iterator types in ParsingDriver::svar() 2016-11-04 14:44:45 +01:00
Houtan Bastani 1bd8679ddd preprocessor: fix warning in parsing 2016-10-07 14:41:33 +02:00
Houtan Bastani 1f3ea3ad5c preprocessor: fix bug in conditional_forecast_paths where the shocked endogenous variable id was provided as symb_id instead of type specific symb_id. #1276 2016-09-06 14:58:25 +02:00
Stéphane Adjemian (Hermes) db44b7337f Revert "Revert "preprocessor: allow for partitioning of variables along multiple dimensions""
This reverts commit b0e7f1cfd7d7b26305f6434de2869c1f19e8ff6d.
2016-06-24 17:38:54 +02:00
Houtan Bastani 24e25fd151 Revert "preprocessor: allow for partitioning of variables along multiple dimensions"
This reverts commit 7a29f50d99e20c2a5872f77592585b3dbd9fa00c.
2016-06-23 15:59:35 +02:00
Houtan Bastani f2afcb8094 preprocessor: allow for partitioning of variables along multiple dimensions 2016-06-23 15:36:42 +02:00
Houtan Bastani 50ead246b1 preprocessor: add all_values_required option to histval. closes #261 2016-06-02 12:57:11 +02:00
Stéphane Adjemian 07aa54821b Merge pull request #1188 from JohannesPfeifer/slice_marco
Add slice and factorization of posterior samplers
2016-05-22 01:45:14 +02:00
Houtan Bastani a4045ae2da preprocessor: make modifications to osr_params and osr_params_bounds output. #948 2016-05-20 15:43:12 +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 ca1879fe7d preprocessor: interface for osr_params_bounds. #948 2016-05-10 18:01:00 +02:00
Houtan Bastani 8f2007fac5 preprocessor: fix bug introduced in c9ca46f228c73dc8b85322109f896cc32f446a7c. Further simplify ParsingDriver::declare_nonstationary_var(). Closes #1184 2016-05-09 16:10:04 +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
Houtan Bastani 92624c2bcb preprocessor: allow for changing planner_discount in .mod file. closes #1092 2016-03-11 15:56:34 +01:00
Houtan Bastani f0ff0d911b preprocessor: allow arbitrary partitioning of variables (removes long_name keyword) 2016-02-26 16:47:17 +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 863e13db55 preprocessor: interface for prior_posterior_function command. closes #1076 2015-10-13 17:16:10 +02:00
Houtan Bastani 6c4f7c0898 preprocessor: add relative_irf option to irf_calibration block. closes #720 2015-09-07 11:49:17 +02:00
Michel Juillard 203ddeba3d finalize svar_global_identification_check 2015-08-24 14:53:27 +02:00
Houtan Bastani f94c7ab332 preprocessor: add VerbatimStatement class. Closes #953 2015-06-16 12:48:32 +02:00
Michel Juillard 60a33fb4a1 Adding 'ramsey_constraints' block to declare contraints for Ramsey
problems. Note that LMMCP (solve_algo=10) still doesn't work in all cases.
2015-05-31 12:18:20 +02:00
Houtan Bastani 691af085cd preprocessor: add tarb_optim option to estimation. #940 2015-05-13 16:50:07 +02:00
Houtan Bastani 84e680adef preprocessor: remove unnecessary options_list argument to rplot 2015-04-01 15:18:09 +02:00
Houtan Bastani 2a108ba38f preprocessor: add joint prior syntax, #824 2015-03-03 15:08:33 +01:00
Houtan Bastani 4ba729fdd6 preprocessor: new command write_latex_original_model. closes #657 2015-02-16 08:31:30 +01:00
Houtan Bastani 73caec3185 more explicit warning when dividing by zero in conversion to static model and when reading model #730 2014-10-03 17:04:07 +02:00
Sébastien Villemot 3c548d6f5d Clarify error message for external functions misuse in model block.
Thanks to Johannes Pfeifer.
2014-07-15 16:54:30 +02:00
Sébastien Villemot 5916768bdd More explicit error message when using the derivative of an external function in the model block.
Closes #678
2014-07-01 17:41:37 +02:00
Sébastien Villemot 63706abf2b Forbid model local variables in planner_objective.
Otherwise the preprocessor crashes.
2014-05-13 11:46:19 +02:00
Sébastien Villemot 1644412875 New option "overwrite" to "shocks" and "mshocks".
Tells that a new block overwrite the previous ones instead of being cumulative.
2014-04-10 11:54:49 +02:00
Sébastien Villemot d44cb3af93 Introduce two new command: perfect_foresight_{setup,solver}.
simul is now simply an alias for
perfect_foresight_setup+perfect_foresight_solver.
2014-04-09 17:57:17 +02:00
Sébastien Villemot 8c2e9b3c02 Improvements to smoother2histval (ref #594)
- fix handling of auxiliary variables related to lagged endogenous
- add preprocessor interface
- add histval_file
- add tests (for smoother2histval with outfile, and for histval_file)
2014-04-03 15:05:20 +02:00
Sébastien Villemot 8507409d97 Allow ranges in lags/periods specification of {irf,moment}_calibration.
Ref #267
2014-03-17 18:12:04 +01:00
Michel Juillard bb67c63599 adding ramsey_model to ParsingDriver 2014-03-09 12:15:32 +01:00
Sébastien Villemot c2cec94af8 Verify types of the symbols in estimated_params{,_init,_bounds} statements.
Closes #624
2014-02-28 18:01:03 +01:00
Houtan Bastani 516491941d ms-dsge: add number_of_lags and parameters option to front end 2014-02-24 12:37:18 +01:00
Sébastien Villemot 58d71bb44e Implement syntaxes for moment_calibration and irf_calibration.
Ref #267
2014-02-10 19:23:06 +01:00
Sébastien Villemot 9624478766 Exit gracefully if an external function name is used as a model local variable.
Closes #599
2014-02-03 16:23:29 +01:00
Sébastien Villemot 47a8fd0147 Add line numbers of equations in preprocessor error messages.
Closes #584
2014-01-27 16:41:43 +01:00
ferhat e2d9f2476c The previous syntax used to call the conditional forecast using the extended path method was problematic. It does not allow to match the endogenous and the shock that are flipped. This is problematic as soon as the forecast periods are heterogeneous or the type of expectation (surprise or perfect foresight) are different. We get rid of the previous syntax. 2013-12-31 01:57:30 +01:00
Houtan Bastani 973f20dab5 preprocessor: streamline addSymbol 2013-12-10 11:41:30 +01:00
Houtan Bastani 0d1fe6899f allow long_name to be used without specifying a latex name, #478 2013-12-09 17:04:32 +01:00
Sébastien Villemot 8d2c28f3bf Forbid the use of trend variables in expressions outside the model block 2013-11-29 16:29:25 +01:00
Sébastien Villemot 1414f98cff Refactor code for collecting variables appearing in expressions
- rename ExprNode::collectVariables in ExprNode::collectDynamicVariables
- new ExprNode::collectVariables: same as above, but without lag information
- remove ExprNode::findUnusedEndogenous: essentially redundant with the above)
- remove ExprNode::collectModelLocalVariables: idem
2013-11-29 15:37:11 +01:00
Houtan Bastani 790b138042 preprocessor: remove unused private field in ConditionalForecastPathsStatement 2013-11-20 12:17:07 +01:00
Houtan Bastani 07f29031ec preprocessor: remove unused private field in EstimationStatement 2013-11-20 12:06:26 +01:00
Stéphane Adjemian (Scylla) cef58f7646 Merge branch 'master' into remove-dynDate-class 2013-11-15 18:36:10 +01:00
Houtan Bastani 14b6cf98fb preprocessor: support long name for parameters, #478 2013-11-15 11:14:16 +01:00
Houtan Bastani 8b34189bc3 preprocessor: support long name for exogenous, #478 2013-11-15 11:14:04 +01:00
Houtan Bastani d368a501d7 preprocessor: support long name for endogenous, #478 2013-11-15 10:57:51 +01:00
Stéphane Adjemian (Penelope) 966ed438c1 Merge branch 'master' into remove-dynDate-class
Conflicts:
	preprocessor/DynareBison.yy
2013-11-14 16:41:08 +01:00
Houtan Bastani 8513c59c9e preprocessor: add use_calibration option for estimated_params_init block. closes #447, closes #512 2013-11-06 13:59:13 +01:00
Stéphane Adjemian (Scylla) aa4753f9ec Merge branch 'master' into remove-dynDate-class 2013-11-06 12:43:06 +01:00
Sébastien Villemot e487dab6bb Refuse non-stationary endogenous variables in deflators.
It is not clear what we should do in that case anyways.
2013-10-29 18:47:59 +08:00
Houtan Bastani aee8202a20 preprocessor: only accept dates of the form: dates('date') in mod file 2013-10-14 09:58:05 +02:00
Houtan Bastani 496036d770 Revert "preprocessor: replace dates with dynDates"
This reverts commit 030fe52affb763f11766801f6deeb797e90365e2.

Conflicts:
	preprocessor/Statement.cc
2013-10-10 11:04:56 +02:00
Houtan Bastani b42790cd6e preprocessor: replace dates with dynDates 2013-10-02 17:21:55 +02:00
Houtan Bastani 0d5ab71482 nostrict option works for endval too 2013-09-16 17:25:41 -04:00
Houtan Bastani f6c982c51b nostrict command-line option ignores extraneous assignments in initval. closes #1 2013-09-16 16:14:34 -04:00
Sébastien Villemot 3e1cc9a2d3 Move check on variables types within 'shocks' block to the checking pass stage
Closes #448
2013-08-27 10:38:54 +02:00
Houtan Bastani e84ad24f6e preprocessor: pretty print error info 2013-05-31 18:27:24 +02:00
Sébastien Villemot a595a83b16 Add new option parallel_local_files to model block
Ref #389
2013-05-31 14:47:38 +02:00
Sébastien Villemot 55a548282c Possibility of restricting differentiate_forward_vars to some variables
Closes #351
2013-05-17 16:53:15 +02:00
Sébastien Villemot 94e6f569b8 Add new model option 'differentiate_forward_vars' (ref. #351) 2013-04-25 18:09:31 +02:00
Sébastien Villemot 75f8467803 Implement tags [static] and [dynamic] for equations
Closes #307
2013-04-11 17:11:35 +02:00
Michel Juillard 24cac29cdf removed changes linked with transforming variables to avoid log or
power of negative numbers
2013-04-09 16:35:57 +02:00
Sébastien Villemot 08c2b6e1c6 Automatic detrending engine can now handle models written in logs (ref. #309)
- new command `log_trend_var'
 - new option `log_deflator' to `var' command
2013-03-26 16:51:17 +01:00
Sébastien Villemot 8610453baf Reorganization of warnings
- at the end of the computation, don't display all preprocessor warnings but
   only their number
 - also display if there has been a MATLAB/Octave warning (counting their
   number does not seem feasible). Closes #181
 - add new "nowarn" option to disable all warnings. Closes #301
2013-02-26 16:50:05 +01:00
Ferhat Mihoubi c709053202 Adds conditional forecast using the extended path method 2013-01-11 18:04:46 +01:00
Sébastien Villemot 823d5a51a6 Add interface and documentation to model_diagnostics
Closes: #205
2012-11-16 12:34:49 +01:00
Houtan Bastani d8cbb55ee7 all_values_required keyword for initval and endval 2012-11-06 15:45:08 +01:00
Sébastien Villemot 514db5f801 Preprocessor interface for multiple graph formats 2012-09-11 14:26:53 +02:00
Sébastien Villemot dbec61ba62 Preprocessor: handle underflows and overflows as MATLAB and Octave do
i.e. don't fail when they happen and instead return 0 or Inf
2012-07-12 12:46:22 +02:00
Sébastien Villemot 6fb2562f13 Preprocessor iface to extended_path 2012-06-08 17:36:32 +02:00
Sébastien Villemot 381c6aeee8 Add new command "calib_smoother"
Closes: #233
2012-05-30 16:28:29 +02:00
Michel Juillard 73b4052f2b first implementation of transform_logpow. It creates too many auxilary
variables and probably violates Jensen inequality in some cases.
2012-05-23 15:09:33 +02:00
Houtan Bastani d5b8adedac estamiton: check variable types in copy statements 2012-04-04 10:43:29 +02:00
Houtan Bastani 5e68f15f04 estimation: clear subsamples substructure whenever a subsamples copy statement is encountered 2012-04-03 18:33:24 +02:00
Houtan Bastani 2cf488ca42 estimation: clear subsamples substructure whenever a subsamples statement is encountered 2012-04-03 18:33:23 +02:00
Houtan Bastani 36a56199c4 estimation: introduce options = options syntax 2012-03-30 15:37:15 +02:00
Houtan Bastani c9aa2d7b23 estimation: introduce prior = prior syntax 2012-03-30 15:37:15 +02:00
Houtan Bastani d459b0ea7b estimation: rewrite subsamples statement as an actual statement 2012-03-28 18:51:52 +02:00
Houtan Bastani 2ac49123d6 estimation: add subsample name to index 2012-03-27 13:03:10 +02:00
Houtan Bastani ad8096edb8 estimation: add subsamples for std / corr, prior / options statements & simplify code 2012-03-27 13:03:09 +02:00
Houtan Bastani b3e2823c82 estimation: fixes to options statement 2012-03-09 11:47:25 +01:00
Ferhat Mihoubi 6e75fc31ca Error message for external function provides more details 2012-03-06 11:33:02 +01:00
Houtan Bastani 631924ef16 bug fix: quotes in warnings do not comply with Matlab disp 2012-02-10 17:05:37 +01:00
Houtan Bastani e4916a1d84 preprocessor: display a summary of preprocessor warnings at the end of a Dynare run 2012-01-30 10:44:14 +01:00
Houtan Bastani d2c03a206b preprocessor: enumerate prior distributions 2011-12-30 15:41:51 +01:00
Houtan Bastani c62d52a576 preprocessor: bug fix in setting prior_variance 2011-12-23 18:22:40 +01:00
Houtan Bastani 9cbaf6200a ms-sbvar: remove regime argument and support duration=array 2011-12-21 12:21:30 +01:00