Houtan Bastani
b09f6affa9
preprocessor: aesthetic fix
2017-08-28 17:47:37 +02:00
Houtan Bastani
628c4cf27b
preprocessor: add model_local_variable declaration for declaring model local variables with tex names. Closes #563
2017-08-28 17:24:56 +02:00
Houtan Bastani
1c485c894f
Add nopreprocessoroutput option to dynare. Closes #1390
2017-08-25 14:26:39 +02:00
Houtan Bastani
38996c7449
preprocessor: add missing option to dynare options message
2017-08-25 14:20:08 +02:00
Houtan Bastani
14bccd8d20
preprocessor: fix spacing in message
2017-08-25 14:20:08 +02:00
Houtan Bastani
fe14007a16
preprocessor: ramsey_model: remove unused symbol_list syntax. Closes #1392
2017-08-24 16:43:36 +02:00
Houtan Bastani
1551d33e9e
preprocessor: add write_equation_tags option to write_latex_original_model and write_latex_static_model. closes #1431
2017-08-24 16:10:53 +02:00
Johannes Pfeifer
f021909db5
Fix typo in ParsingDriver.hh
2017-08-16 19:45:58 +02:00
Houtan Bastani
91096d8d02
preprocessor: store max lead/lag info, write to output
2017-07-27 12:33:19 -04:00
Houtan Bastani
7d3f59607a
Merge pull request #1470 from JohannesPfeifer/use_shock_groups
...
Fix bug in use_shock_groups
2017-07-07 12:41:22 +02:00
Johannes Pfeifer
3bac10a97d
Fix bug in use_shock_groups and colormap
...
Option was not written to correct subfield of options_-structure. Related to 7cd56e9687
2017-07-07 12:38:20 +02:00
Houtan Bastani
5eb66ff1ab
preprocessor: only create one dynamic/static JSON file
2017-06-29 15:11:22 +02:00
Houtan Bastani
49a866255a
preprocessor: couch JSON stdout output in constant text so users can easily find it
2017-06-29 13:18:59 +02:00
Houtan Bastani
153bcb8fe4
preprocessor: cleanup writing JSON to standardout
2017-06-29 13:15:35 +02:00
Houtan Bastani
9a13adb111
preprocessor: print JSON deriv detail by default; use option to print less-detailed versions of dynamic/static models
2017-06-29 13:08:41 +02:00
Houtan Bastani
a48fbee19e
preprocessor: write certain variables from M_ to JSON output
2017-06-28 17:11:24 +02:00
Sébastien Villemot
45ea2e477a
Add julia preprocessor to the clean rule.
2017-06-28 15:59:20 +02:00
Stéphane Adjemian (Charybdis)
2007ceea45
Cosmetic change.
...
A "lag"" key with a negative value should be interpreted as a lead (and not a
lag). Possible solutions are (1) Change the sign of the value, (2) Add a new
key "lead" and consider only positive values, and (3) Change the key name for
"shift" with negative values for lags and positive values for leads.
The commit implements the third choice.
2017-06-28 15:49:09 +02:00
Sébastien Villemot
1ff5c3f571
Fix various typos (thanks lintian).
2017-06-28 15:06:54 +02:00
Houtan Bastani
a81420d889
preprocessor: remove warning on int/size_t comparison
2017-06-28 12:06:20 +02:00
Houtan Bastani
3938381e99
preprocessor: write JSON output for original model when writing after transform pass
2017-06-28 12:04:04 +02:00
houtanb
45fa9324bd
preprocessor: write original model in JSON output after computing pass
2017-06-23 14:20:48 +02:00
houtanb
4d53b6bf55
preprocessor: add tag information to cloned dynamic model
2017-06-23 14:19:57 +02:00
Stéphane Adjemian (Charybdis)
119b5a62f2
Merge branch 'master' into json
2017-06-16 20:03:36 +02:00
Houtan Bastani
e6ffc59296
preprocessor: remove comparison warnings from compilation of ModelTree.cc
2017-06-14 23:49:10 +02:00
Houtan Bastani
2cbb619f6f
preprocessor: fix bug: check whether second string in pair is empty. closes #1469
2017-06-14 23:40:30 +02:00
Stéphane Adjemian (Charybdis)
6c0ab379ad
Fixed code indentation.
2017-06-14 07:01:31 +02:00
Johannes Pfeifer
7cd56e9687
Get rid of unused and superseded options_.colormap and make sure options_.plot_shock_decomp.colormap is set
2017-05-23 13:20:47 +02:00
Stéphane Adjemian (Charybdis)
24a2fc340a
Merge branch 'prepare-4.5'
2017-05-19 16:33:12 +02:00
Stéphane Adjemian (Charybdis)
1bf81c9f5a
Fixed copyright notices.
2017-05-18 18:36:38 +02:00
Houtan Bastani
95da783110
preprocessor: clean up initval output
2017-05-18 18:02:22 +02:00
Stéphane Adjemian (Charybdis)
b4448937cc
Fixed indentation of c/h/cc/hh files.
2017-05-16 16:30:27 +02:00
Stéphane Adjemian (Charybdis)
a53636e24e
Fixed copyright notices.
2017-05-16 14:11:15 +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
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
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
e2b30857a0
preprocessor: split equation output into lhs and rhs. #1387
2017-03-15 12:52:55 +01:00
Houtan Bastani
425bab1461
preprocessor: write JSON output for cross refs #1387
2017-03-10 17:28:25 +01:00
Houtan Bastani
9f7b084970
Merge branch 'master' into json
2017-03-10 17:20:15 +01:00
Houtan Bastani
99d948463e
Revert "preprocessor: write equation cross references in JSON. #1387"
...
This reverts commit 0ccc82300c
.
2017-03-10 17:18:41 +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
0ccc82300c
preprocessor: write equation cross references in JSON. #1387
2017-03-06 16:34:08 +01:00
Houtan Bastani
defe06d513
preprocessor: create two different static and dynamic files with the option jsonprintderivdetail. #1387
2017-03-03 14:42:37 +01:00
Houtan Bastani
5063020c5d
Merge branch 'master' into json
2017-03-03 14:42:25 +01:00
Houtan Bastani
f500b8385d
preprocessor: make JSON output start counting at 1 instead of 0. #1387
2017-03-02 17:34:34 +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
ed3e74994f
preprocessor: add onlyjson option to allow exit upon writing of JSON output. #1387
2017-02-28 14:34:22 +01:00
Houtan Bastani
5e5a9e3b9a
preprocessor: JSON output aesthetic fixes, support planner objective. #1387
2017-02-27 15:40:34 +01:00
Houtan Bastani
e07e393642
preprocessor: fix JSON bugs. #1387
2017-02-27 14:23:55 +01:00
Houtan Bastani
a4171ad4ab
preprocessor: output JSON after different steps, write static, dynamic, params derivs files in JSON. #1387
2017-02-24 17:43:22 +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
1007ea1301
preprocessor: JSON output for statements, #1387
2017-02-20 11:23:10 +01:00
Houtan Bastani
181ffd65c5
preprocessor: bug fix for writing of parameter values. Closes #1394
2017-02-13 14:03:44 +01:00
Winant Pablo
8ee9d081e8
FIX: JSON remove space before symbols + quote values
2017-02-12 16:45:05 +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
d05dd34d30
preprocessor: write JSON output. #1387
2017-02-06 17:41:18 +01:00
Houtan Bastani
5b6a888d7f
preprocessor: fix typo
2017-01-31 17:11:03 +01:00
Houtan Bastani
f1d607af99
preprocessor: remove extra exogenous variables. closes #841
2017-01-27 22:48:17 +01:00
Houtan Bastani
3a0b9a1143
preprocessor: don’t automatically declare external functions
2017-01-27 20:36:26 +01:00
Houtan Bastani
3d4619fd85
preprocessor: handle undeclared external functions and lagged variables
2017-01-27 20:36:26 +01:00
Houtan Bastani
cfae273038
keep track of all times an undeclared variable is encountered
2017-01-27 20:36:26 +01:00
Houtan Bastani
bfd239aa26
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
Stéphane Adjemian (Charybdis)
da31cca7d4
Fixed bug.
...
NO_POSTERIOR_KERNEL_DENSITY option was not modifying the expected field in
options_, consequently this option was no honored.
2017-01-20 17:35:43 +01:00
Houtan Bastani
7fb7dd7ccc
fix nested parens for params derivatives. closes #1201
2017-01-05 18:19:37 +01:00
Houtan Bastani
157369b505
when >32 nested parens encountered in matlab, print error message once per file in which such a situation occurred. #1201
2017-01-05 15:19:13 +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
Houtan Bastani
09e7dde0ea
fix warnings introduced in 3b20d41a92
related to size_t/int comparison #1201
2017-01-02 11:38:13 +01:00
Houtan Bastani
6bd1ff8e1c
3b20d41a92
used to_string from C++11 standard which breaks the snapshot build. #1201
2017-01-02 11:21:28 +01:00
Houtan Bastani
952f545cd7
avoid unnecessary processing when a stream has 32 or fewer nested parenthesis. #1201
2016-12-30 18:32:20 +01:00
Houtan Bastani
3b20d41a92
first iteration of fix for nested parenthesis in matlab. #1201
2016-12-30 18:14:08 +01:00
Houtan Bastani
9582431bd5
bug fix: end preprocessing with error when more than 32 nested parenthesis are encountered. closes #1201
2016-12-28 14:02:50 +01:00
Houtan Bastani
013043b1dd
ramsey_policy: accept all endogenous variables in var_list_, even auxiliary variables. closes #1355
2016-12-27 14:08:50 +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
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
2f717b5adc
Eliminate global variables from shock_decomposition.m
2016-12-18 09:57:51 +01:00
Johannes Pfeifer
5515da191a
Add Raftery/Lewis (1992) convergence diagnostics
2016-12-17 17:22:05 +01:00