Commit Graph

22 Commits (master)

Author SHA1 Message Date
Stéphane Adjemian (Ryûk) 735bd66d4d
Remove unused output arguments. 2023-12-18 07:48:27 +01:00
Stéphane Adjemian (Charybdis) edede274f2
Make the detection of the target in PAC equation more robust.
In a PAC equation, the error correction term must be written as:

β×(yₜ₋₁-xₜ₋₁)

where x is the endogenous variable determined by the equation and y
the target for x. The ordering matters, if not respected the
preprocessor wll not identify the error correction term (hence the
target) and will throw an error. The target must be an endogenous
variable or the log of an endogenous variable. For a more general
target, ie an expression, one can create an auxiliary variable.

We impose the ordering, target comes first in the error correction
term, so that the stability condition is always β>0 (this constraint
can be enforced when estimating the PAC equation).
2020-07-24 17:36:31 +02:00
Sébastien Villemot 88c38c9ebc
Fixed some trend_component_model tests
Those tests broke because they were declaring an endogenous (var_allows_…) that
is not used in the model, and this is no longer allowed by the preprocessor.

Those variables were introduced by commit
dccabecee7 (on the old ecb-master branch), at the
same time as a second PAC equation was introduced.

The fix consists in making the second PAC equation different from the first
one, defining a different endogenous.
2019-09-26 17:35:15 +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) 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 4ac5ebbefc
add var AR test 2019-03-15 14:22:50 +01:00
Houtan Bastani dccabecee7
fix trend-component tests 2019-03-15 13:29:15 +01:00
Stéphane Adjemian (Charybdis) 4943bf5fd1
Updated integration tests fro trend component models. 2019-02-21 12:52:12 +01:00
Houtan Bastani a7165e2c12
fix tests 2019-02-19 12:34:30 +01:00
Houtan Bastani eb52cc9953
preprocessor: submodule update 2019-02-14 17:41:07 +01:00
Stéphane Adjemia (Scylla) 2c890f924a
Removed useless tags. 2018-10-24 14:28:32 +02:00
Stéphane Adjemia (Scylla) 1c1a3ea0a4
Removed tests on targets.
A target does not need to be a random walk. Also added a new integration
test (where the target is a constant, 0).
2018-10-24 12:06:14 +02:00
Stéphane Adjemian(Charybdis) a680cea095
Fixed integration test for trend component model (equation ordering). 2018-09-28 17:39:14 +02:00
Stéphane Adjemian(Charybdis) 11a882d66f
Fixed bug in integration tests (trends-->targets). 2018-09-28 12:23:37 +02:00
Houtan Bastani 974bcd92ae Merge branch 'ecb-master' into ecb-master-targets 2018-09-25 14:41:11 +02:00
Houtan Bastani b6fc811ce8 fix typo 2018-09-25 12:11:21 +02:00
Stéphane Adjemian(Charybdis) 031e2c87c6
New version of get_companion_matrix + new integration test.
The routine is still buggy. In PAC and VAR_EXPECTATION models we
use get_companion_matrix_legacy routine instead.
2018-09-19 17:39:48 +02:00
Houtan Bastani eb316d7e2d update files for change of option name from `trends` to `targets` 2018-09-13 12:24:32 +02:00
Houtan Bastani 2e547edd26 add test files for preprocessor AR/EC matrices 2018-09-12 19:00:28 +02:00
Stéphane Adjemian(Charybdis) 5ea0c8098b Ensure that the ordering of the trend variables is consistent...
... With the ordering of the EC variables.
2018-09-03 17:35:59 +02:00
Stéphane Adjemia (Scylla) 8276acb55f Added integration tests for TREND_COMPONENT model. 2018-08-30 12:02:48 +02:00
Stéphane Adjemia (Scylla) 7bcc5b9f42 Added integration tests for VAR_MODEL.
Check the AR matrices.
2018-08-29 17:43:35 +02:00