vec2var
Convert VEC model to VAR model
Syntax
Description
returns the coefficient matrices of the vector autoregressive model equivalent to
the vector error-correction model with input coefficient matrices. If the number of
lags in the input vector error-correction model is q, the number
of lags in the output vector error-correction model is p =
q + 1.VAR = vec2var(VEC,C)
Examples
Input Arguments
Output Arguments
More About
Tips
Econometrics Toolbox™ VAR model functions such as
simulate,forecast, andarmairfare appropriate for vector autoregression (VAR) models. To simulate, forecast, or generate impulse responses from a vector error-correction (VEC) model usingsimulate,forecast, orarmairf, respectively, convert the VEC model to its equivalent VAR model representation.To accommodate structural VEC models, specify the input argument
VECas aLagOplag operator polynomial.To access the cell vector of the lag operator polynomial coefficients of the output argument
VAR, entertoCellArray(VAR).To convert the model coefficients of the output argument from lag operator notation to the model coefficients in difference-equation notation, enter
VARDEN = toCellArray(reflect(VAR));
VARDENis a cell vector containing q + 1 coefficients corresponding to the response terms inVAR.Lagsin difference-equation notation. The first element is the coefficient of yt, the second element is the coefficient of yt–1, and so on.The constant offset of the converted VAR model is the same as the constant offset of the VEC model.
Algorithms
vec2vardoes not impose stability requirements on the coefficients. To check for stability, useisStable.isStablerequires aLagOplag operator polynomial as input. For example, to check whetherVAR, the cell array ofn-bynnumeric matrices, composes a stable time series, entervarLagOp = LagOp([eye(n) var]); isStable(varLagOp)
A
0indicates that the polynomial is not stable. IfVARis aLagOplag operator polynomial, then pass it toisStable.
References
[1] Hamilton, J. D. Time Series Analysis. Princeton, NJ: Princeton University Press, 1994.
[2] Lutkepohl, H. "New Introduction to Multiple Time Series Analysis." Springer-Verlag, 2007.
Version History
Introduced in R2015b