Professional Documents
Culture Documents
Eviews VAR Stata
Eviews VAR Stata
Eviews VAR Stata
Autoregressive: presence of lagged values of the dependent variable on the right hand side of
the equation.
Vector: system contains a vector of two or more variables.
Var model is constructed only if the variables are integrated of order one. That is, stationary
after first difference.
If variables are cointegrated, construct both short run (VAR) and long-run (VEC) models.
If variables are not cointegrated, construct only the short-run (VAR) model.
All the variables in a VAR system are endogenous; there are no exogenous variables.
The stochastic error terms are often called impulses, or innovatives or shocks
The VAR model is estimated by OLS.
Too many lags: lose degrees of freedom, statistically insignificant coefficient and
multicollinearity
Too few lags: specification errors
Choose optimal lags using the information criteria: AIC, SC, HQIC
Interpretation of the short-run coefficient is as in any other linear model; they are ceteris-paribus effects
and inference can be based on the usual OLS standard errors and test statistics
Notes
The depedent variable is a function of its lagged values and the lagged values of other variables in the
model.
Step 3: perform stationary test: series must be integrated of order one and not I(2)
Step 4: determine the oprtimal lag length (k) for the model (syntax: varsoc)
Step 4:
Selection-order criteria
+---------------------------------------------------------------------------+
|----+----------------------------------------------------------------------|
+---------------------------------------------------------------------------+
Exogenous: _cons
Vector autoregression
----------------------------------------------------------------
----------------------------------------------------------------
------------------------------------------------------------------------------
-------------+----------------------------------------------------------------
lny |
lny |
lnk |
-------------+----------------------------------------------------------------
lnk |
lny |
lnk |
------------------------------------------------------------------------------
Autocorrelation test
varlmar, mlag(3)
Lagrange-multiplier test
+--------------------------------------+
|------+-------------------------------|
| 1 | 4.1027 4 0.39228 |
| 2 | 3.1431 4 0.53418 |
| 3 | 1.3461 4 0.85351 |
+--------------------------------------+
We cannot reject H0
Normality test
varnorm, jbera
Jarque-Bera test
+--------------------------------------------------------+
|--------------------+-----------------------------------|
+--------------------------------------------------------+
Stability test
varstable
+----------------------------------------+
| Eigenvalue | Modulus |
|--------------------------+-------------|
+----------------------------------------+
VECM model
ECTt-1= the error correction term is the lagged value of the residuals obtained from the cointegrating
regression of the dependent variable on the regressions. Contains long-run information derived from
the long run cointegrating relationship.
Step 7: with cointegration, specify the VECM with (P) lags but the model is estimated with (p-1) lags
Johensen
-------------------------------------------------------------------------------
5%
2 14 181.327 0.00326
AIC = -12.4654
----------------------------------------------------------------
----------------------------------------------------------------
------------------------------------------------------------------------------
-------------+----------------------------------------------------------------
D_lny |
_ce1 |
lny |
lnk |
-------------+----------------------------------------------------------------
D_lnk |
_ce1 |
lny |
lnk |
------------------------------------------------------------------------------
Cointegrating equations
-------------------------------------------
-------------------------------------------
------------------------------------------------------------------------------
-------------+----------------------------------------------------------------
_ce1 |
lny | 1 . . . . .
_cons | -1.0749 . . . . .
Main output
-------------+----------------------------------------------------------------
_ce1 |
lny | 1 . . . . .
_cons | -1.0749 . . . . .
Notes
The adjustment term is (0.045), suggesting that previous year’s errors (or deviation from long run
equilibrium) are corrected for with the current year at a convergence speed of 4.5%. However ECTt-1 is
insignificant.
Diagnostic