vec2var
Convert VEC model to VAR model
Syntax
Description
VAR = vec2var(VEC,C)
Examples
Input Arguments
Output Arguments
More About
Tips
- Econometrics Toolbox™ VAR model functions such as - simulate,- forecast, and- armairfare appropriate for vector autoregression (VAR) models. To simulate, forecast, or generate impulse responses from a vector error-correction (VEC) model using- simulate,- forecast, or- armairf, respectively, convert the VEC model to its equivalent VAR model representation.
- To accommodate structural VEC models, specify the input argument - VECas a- LagOplag operator polynomial.
- To access the cell vector of the lag operator polynomial coefficients of the output argument - VAR, enter- toCellArray(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 in- VAR.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, use- isStable.- isStablerequires a- LagOplag operator polynomial as input. For example, to check whether- VAR, the cell array of- n-by- nnumeric matrices, composes a stable time series, enter- varLagOp = LagOp([eye(n) var]); isStable(varLagOp) - A - 0indicates that the polynomial is not stable. If- VARis a- LagOplag operator polynomial, then pass it to- isStable.
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