Commit Graph

12017 Commits (ede5b5e4c01e98488590da794a83dff983aa49d5)

Author SHA1 Message Date
Stéphane Adjemian (Charybdis) ede5b5e4c0 Ensure that the variable names are unique. 2019-05-03 16:15:54 +02:00
Stéphane Adjemian (Charybdis) fc4e6b2b8c Updated preprocessor submodule. 2019-05-03 15:55:21 +02:00
Houtan Bastani 157d30d48f
fix bug in parsing of PAC equation 2019-05-03 12:23:07 +02:00
Stéphane Adjemian (Charybdis) ea68f849d5 Renamed routine. 2019-04-29 23:49:04 +02:00
Stéphane Adjemian (Charybdis) 0352ba1ff2 Handle equation with diff(diff(log())). 2019-04-29 23:45:15 +02:00
Stéphane Adjemian (Charybdis) 92e7010b97 Added integration test. 2019-04-29 23:39:14 +02:00
Stéphane Adjemian (Charybdis) ceb2bbcd1d Updated preprocessor submodule.
Fixes issues in cherrypick with models containing only identities.
2019-04-29 23:29:34 +02:00
Stéphane Adjemian (Charybdis) b6a80229a9 Added integration test for cherrypick and agregate routines. 2019-04-27 18:12:53 +02:00
Stéphane Adjemian (Charybdis) d7042b8e80 Fixes for models without parameters or exogenous variables. 2019-04-27 18:08:19 +02:00
Stéphane Adjemian (Charybdis) 1a55cd7945 Write files only if necessary.
DO not print files for parameters declaration, exogenous variables declarations
or parameter values if the selected equations do not have parameters and/or
exogenous variables (typically accounting identities).
2019-04-26 18:46:34 +02:00
Houtan Bastani eb3b1dda70
preprocessor: submodule update 2019-04-11 11:34:27 +02:00
Stéphane Adjemia (Scylla) 2d9e7a704b
Always write list of variables on more than one line.
(one line per variable)
2019-04-11 10:42:50 +02:00
Stéphane Adjemia (Scylla) fe4a15e417
Fixed bug if LHS no present in datablase.
Removed range on the left hand side.
2019-04-11 10:13:34 +02:00
Stéphane Adjemia (Scylla) ba46992e18
Bug fix (filter out lhs variable). 2019-04-10 10:40:41 +02:00
Stéphane Adjemia (Scylla) 66e44dd830
Added missing routine.
Example for agregate routine.
2019-04-10 09:56:30 +02:00
Houtan Bastani c3c2397a87
fix bug with noemptylinemacro 2019-04-09 15:13:52 +02:00
Stéphane Adjemia (Scylla) 8740355407
Rewrote evaluate routine.
- Can handle more than one equation.
 - Can handle identities.
 - Forbids dynamic equations.
 - Can handle following LHS y, diff(y), diff(diff(y)), log(y), diff(log(y)) and
   diff(diff(log(y))), other transformations will result in an error.
 - Added integration tests.

Remark 1. In the integration tests I compare the values returned by the
          evaluate routine with the values computed with the simulation
          routines. Normally the discrepancies should be small, but this is not
          the case when the endogenous variable appear under a log on the
          LHS. My current conclusion is that this has more to do with the
          cumulation of the accuracy errors in the simulation routine (a
          sequence of Newton algorithms) rather than with the evaluate routine.

Remark 2. Currently the only allowed nonlinear transformation on the LHS
          endogenous variable is the log. It is not difficult to generalise, at
          some point I had all the matlab functions allowed by Dynare,
          but this would complicate the code for not much gain.
2019-04-08 11:01:34 +02:00
Stéphane Adjemia (Scylla) de458022e5
Removed non existing subfolder from path. 2019-04-08 10:55:23 +02:00
Stéphane Adjemia (Scylla) 33c9b5f435
Cosmetic change.
Renamed the auxiliary variables for PAC/VAR expectations unrolled
expressions. Using shorter prefixes, PE_ and VE_ instead of pac_expectation and
var_expectations.
2019-04-02 22:57:45 +02:00
Stéphane Adjemia (Scylla) 94b20fe7e8
Activate two integration tests. 2019-04-02 22:57:23 +02:00
Stéphane Adjemia (Scylla) 8415ac48a0
Fixed bug (missing initialisation). 2019-04-02 21:31:45 +02:00
Stéphane Adjemia (Scylla) aa499671ce
Added the possibility to rename an endogenous variable in equation. 2019-04-02 18:06:47 +02:00
Stéphane Adjemia (Scylla) 599ebc2614
Ensure that residuals are removed even if the variable is not preceeded by a + symbol. 2019-04-02 15:40:43 +02:00
Stéphane Adjemia (Scylla) a72ee7e919
Updated dseries submodule. 2019-04-02 14:30:42 +02:00
Stéphane Adjemia (Scylla) f39f57b9b5
Added parameter values in cherrypick/agregate routines. 2019-04-02 07:11:32 +02:00
Houtan Bastani df66ec5b9e
mac: make build system work with clang and gcc
(cherry picked from commit 7e46d8267c)
2019-04-01 18:03:21 +02:00
Stéphane Adjemian (Charybdis) bb0660d506
Added integration tests (trend component models). 2019-03-29 17:58:03 +01:00
Stéphane Adjemian (Charybdis) 5a519b812f
Updated comments. 2019-03-29 17:52:46 +01:00
Stéphane Adjemian (Charybdis) 7b7bca8bda
Generalised trend component model.
Added the possibility to associate more than one trend to an endogenous
variable. The number of error correction equations is longer required to be
equal to the number of trends.
2019-03-29 17:52:46 +01:00
Houtan Bastani d84d8af8a8
dyn_ols: fix typo 2019-03-29 15:23:19 +01:00
Houtan Bastani 256949a243
fix spacing 2019-03-29 15:23:03 +01:00
Stéphane Adjemian (Charybdis) 39041009ef
Added tag on auxiliary variable for PAC/VAR expectations. 2019-03-28 11:19:38 +01:00
Stéphane Adjemian (Charybdis) cb97ed8081
Added tag on equation defining PAC/VAR expectation unrolled expression. 2019-03-28 11:18:42 +01:00
Stéphane Adjemian (Charybdis) 6c58598568
Fixed bug if lhs is an expression instead of an endogenous variable. 2019-03-27 15:24:05 +01:00
Houtan Bastani 825a010a90
sur, pooled_fgls, pooled_ols: add date range option 2019-03-27 14:57:57 +01:00
Houtan Bastani 4dbbf4f02e
olsgibbs: add date range option 2019-03-27 11:04:00 +01:00
Houtan Bastani d242ed88a2
dyn_ols: add date range option 2019-03-26 15:04:16 +01:00
Houtan Bastani ae6c118e9e
fix bug when looking for parameter in unary op node 2019-03-26 11:06:31 +01:00
Houtan Bastani 9ab4c6f80d
ols-style equations: handle additive elements separated by + and -
use same algorithm as in preprocessor to facilitate future changes
2019-03-26 11:06:30 +01:00
Stéphane Adjemian (Charybdis) a77de6ce75
Revert last patch on Makefile.am. 2019-03-25 20:09:14 +01:00
Stéphane Adjemian (Charybdis) 8a8ef89004
Added example for new agregate() routine. 2019-03-25 18:16:38 +01:00
Stéphane Adjemian (Charybdis) b98e0a2bbf
Added routine to agregate cherry-picked submodels. 2019-03-25 17:59:22 +01:00
Stéphane Adjemian (Charybdis) d4a1d4b46a
Added missing aux. variable (PAC/VAR expectation). 2019-03-25 17:42:01 +01:00
Stéphane Adjemian (Charybdis) e20a3ffa45
Export tags on endogenous and exogenous variables. 2019-03-22 14:39:40 +01:00
Stéphane Adjemian (Charybdis) ecfafc048b
Export equation tags if defined in original mod file. 2019-03-22 11:29:59 +01:00
Stéphane Adjemian (Charybdis) 07a40d2df4
Do not unroll expectations in the equation where they are used...
... But create an auxiliary variable with corresponding equation (where the
expectation are unrolled). Also separate the growth neutrality correction.
2019-03-21 17:33:07 +01:00
Stéphane Adjemian (Charybdis) 567ca19000
Added routine to evaluate the RHS of an equation. 2019-03-19 07:08:55 +01:00
Houtan Bastani 15bd0e3397
preprocessor: submodule update 2019-03-15 17:11:01 +01:00
Houtan Bastani 7858a88764
add dependency for test for parallelization of test suite 2019-03-15 17:01:25 +01:00
Houtan Bastani 543470b331
separate ECB tests so as to be able to test everything in one go 2019-03-15 16:44:59 +01:00