Documente Academic
Documente Profesional
Documente Cultură
Autoregression in
Eview
Kelikume Ikechukwu
ikelikume@lbs.edu.ng
CONTENT
Introduction
Vector Autoregressive Models:
Notation and Concepts
Choosing the Optimal Lag Length for a
VAR
Information Criteria for VAR Lag Length
Selection
Does the VAR Include Contemporaneous
Terms?
Primitive versus Standard Form VARs
Block Significance and Causality Tests
Content
Testing for Granger causality
Interpreting Granger Causality Tests
Impulse Responses
Variance Decompositions
Impulse Responses and Variance
Decompositions: The Ordering of the Variables
i. Estimating a VAR in E-view
ii. VAR Estimation Output
iii.Working with a VAR
iv.Granger Causality Tests
Introduction
Since the seminal work by Sims (1980)*,
structural-VAR and cointegrated VAR’s have
been applied to economic data to;
ii. Forecast macro time series
iii. Study the sources of economic fluctuations
iv. Test economic theories
VAR resembles a simultaneous equation
modeling
In VAR, we consider several endogenous
variables together. Each endogenous
variables is explained by its lagged values
and the lagged values of all other
endogenous variables in the model.
Introduction
• In the SEM model, some variables are treated as
endogenous and some are predetermined.
• In estimating SEM, we have to make sure that the
equation in the system are identified – this is achieved
by assuming that some of the predetermined variables
are present only in some equation (which is very
subjective) – and criticized by Christopher Sims (1980)
• If there is simultaneity among set of variables, they
should all be treated on equal footing, i.e., there should
not be any a priori distinction between endogenous and
exogenous variables.
We
y1can
t βwrite
10 βthis as
11 α11 y1t −1 α12 0 y2 t u1t
= + + +
y2 t β20 α 21 β21 y2 t −1 0 α 22 y1t u2 t
We
y1can
t βwrite
10 βthis as
11 α11 y1t −1 α12 0 y2 t u1t
= + + +
y2 t β20 α 21 β21 y2 t −1 0 α 22 y1t u2 t
i. File/new/workfile
ii. File/import/Read Excel/…..IP
iii.Quick/Estimate VAR
iv. Lag intervals: 1 2 tells E-views to
use the first and second lags of all
of the variables in the system as
right-hand side variables.
Theory (VAR)
Estimating a VAR in E-
view
Select Menu Options;
File/Open/Workfile
Define the variables
File/New/Program
series inms=log(ms)
series lnRGDP=log(RGDP)
series dinrdgp=lnrgdp-lnrgdp(-1)
series dlnms=lnms-lnms(-1)
Test the Stationarity
property
Stationarity test is done to decide
on VAR model in level or first
difference.
Some econometricians have
argued that the debate on
stationary, nonststionary variables
is mostly irrelevant for VAR
modeling and that one is allowed
to use a level VAR.
VAR ESTIMATION
Select the series you wish to
analyze
dlnms, dlnrgdp
Press CTRL and left click the
variable with your mouse
Select Group window Procs/Make
Vector Autoregression
Select Unrestricted VAR, sample
1960 2008 the estimation will
Lag Length selection
Criteria
Select VAR window View/Lag
length criteria Max lags 12
You will find the model selection
criteria log- likelihood, LR, FPE,
AIC, SIC, HQ
Decide the optimal number of lag
By using the AIC and SIC criteria
with the least value from our
result it seems that the lag length
Impulse Response
Function
A shock to the i-th variable not
only directly affects the i-th
variable but is also transmitted to
all of the other endogenous
variable through the dynamic (lag)
structure of the VAR.
An impulse response function
traces the effect of a one standard
deviation shock to one of the
innovations on current and future
values of the endogenous
variables.
Impulse Response
Function
If the innovations εt are
contemporaneously uncorrelated,
interpretation of the impulse
response is straightforward.
The i-th innovation ε
i,t is simply a
shock to the i-th endogenous
variable yi,t.
Impulse Response Function in VAR
Select VAR window Impulse or
(View/impulse response)
Impulse Response
Function
Under Impulse Definition select
Multiple Graphs, Response
Standard Errors – Monte Carlos,
and Period 10 or more periods
For stationary VARs, the impulse
responses should die out to zero and the
accumulated responses should asymptote
to some (non-zero) constant.
Vector Autoregression Theory
(VAR)
3. Working with a VAR
A. Variance Decomposition:
While impulse response functions trace the effects of a shock
to one endogenous variable on to the other variables in the
VAR, variance decomposition decomposes variation in an
endogenous variable into the component shocks to the
endogenous variables in the VAR. To obtain the variance
decomposition, we can select following:
1) View/Variance decomposition
2) Option: Table, Multiple graphs, Combined response graphs.
The source of this forecast error is the variation in the current
and future values of the innovations to each endogenous
variable in the VAR. The percentage of the forecast variance
due to each innovation, with each row adds up to 100.
Vector Autoregression Theory
(VAR)
Granger Causality Tests
We can test Granger causality by running a VAR
on the system of equations and testing for zero
restrictions on the VAR coefficients.
The Granger (1969) approach to the question of
whether x causes y is to see how much of the
current y can be explained by past values of y
and to see whether adding lagged values of x
can improve the explanation.
The y is said to be Granger-caused by x if x
helps in the prediction of y, or equivalently if
the coefficients on the lagged x’s are
statistically significant. Note that the two-way
Vector Autoregression Theory
(VAR)
Granger Causality Tests
E-view Example:
1) Quick/Group Statistics/Granger Causality
2) List of series: ms GDP
3) Lag: 2 (You may choose other lags)
The hypothesis that past Ms does not affect future
GDP is not rejected.
The hypothesis that past GDP does not affect future Ms
is
not rejected.
If you want to run Granger causality tests with other
exogenous variables (e.g. seasonal dummy variables or
linear trends) or if you want to carry out likelihood ratio
(LR) tests, run the test regressions directly using equation
objects.