This function is just a wrapper for the lineVar
, with
model="VECM".
More comprehensive functions for VECM are in package vars.
Differences with that package are:
- Engle-Granger
estimator
The Engle-Granger estimator is available
- Presentation
Results are printed in a different ways, using a matrix
form
- lateX export
The matrix of coefficients can be exported to
latex, with or without standard-values and significance stars
- Prediction
The predict
method contains a newdata
argument allowing to compute rolling forecasts.
Two estimators are available: the Engle-Granger two step approach
(2OLS
) or the Johansen (ML
). For the 2OLS, deterministic
regressors (or external variables if LRinclude
is of class numeric) can be
added for the estimation of the cointegrating value and for the ECT. This is
only working when the beta value is not pre-specified.
The arg beta is the cointegrating value, the cointegrating vector will be
taken as: (1, -beta).
Note that the lag specification corresponds to the lags in the VECM
representation, not in the VAR (as is done in package vars or software
GRETL). Basically, a VAR with 2 lags corresponds here to a VECM with 1 lag.
The lag can be set to 0, although some methods (irf, fevd) won't work for this case.
#'The arg beta
allows to specify constrained cointegrating values, leading to
\(ECT= \beta^{'}X_{t-1}\). It should be specified as a \(K \times r\) matrix. In case of
\(r=1\), can also be specified as a vector. Note that the vector should be normalised,
with the first value to 1, and the next values showing the opposite sign in the long-run relationship \(- \beta\).
In case the vector has \(K-1\) values, this is what lineVar
is doing, setting \((1, - \beta)\).
Note finally one should provide values for all
the coefficients (eventually except for special case of r=1 and k-1), if you want to provide only part of the
parameters, and let the others be estimated, look at the functions in package urca.
The eigenvector matrix \(\beta\) is normalised using the Phillips triangular representation,
see Hamilton (1994, p. 576) and Juselius (2006, p. 216), see coefA
for more details.