Data Analysis Using Eviews
Data Analysis Using Eviews
EViews is the short form for Econometric Views, and hence it is an application that is most
suited for econometric data analysis, especially the analysis of time series data. However, it can
3) macroeconomic forecasting
4) simulations
Just like Stata, EViews provides the user with flexibility since it has both a command window
Eviews
File Edit Object View Proc Quick Options Add-ins Window Help
Welcome to Eviews
The window containing: File, Edit, Object, View, Proc, Quick, Options, Add-ins, Window and
WORK AREA, and finally the STATUS BAR with the words “Welcome to EViews”.
STEP 1: TYPE IN THE FOLLOWING DATA (LONGLEY DATA 1947 1962) IN EXCEL
OBS Y X1 X2 X3 X4 X5 X6
Source: J Longley, “An appraisal of least squares programs from the point of view of the user,”
Journal of the American Statistical Association, vol. 62, 1967, pp 819 – 841
Domador N Gujarati and Dawn C Porter, Basic Econometrics, 5th edition, McGraw Hill
The Longley data given above are time series for the years 1947 – 1962 and pertain to: Y =
The first step in using EViews is to create a work file, that is, a container for all EViews Files.
To create a work file in EViews, go to the menu bar and select: file/new/work file
A dialogue box will pop up asking you to specify a few details about your work file. You may
select as follows:
- Frequency annual
- WF Longley Data
Then click OK.
By doing so, you will already have created the work file. Notice that the work file has two icons:
an icon labeled “c” which stands for intercept, and another icon labeled “resid” which stands for
residuals.
EViews will ask you to specify the location of your data, for example: DESKTOP – EVIEWS
By doing so, you will be able to see that new icons are created on the work file as follows: x1,
x2, x3, x4, x5, x6 and y. Thus, you have already imported the data.
STEP 5: VERIFYING THE DATA
On your work file, highlight: x1, x2, x3, x4, x5, x6 and y and then click the left button of mouse
This process displays the spreadsheet for your data. The dataset consists of 7 variables and the
observations are from 1947 to 1962. Thus, compare the EViews spreadsheet with the original
spreadsheet.
STEP 6: GRAPHICS
From the graphs, we notice that our variables have an upward trend. The upward trend is smooth
To create the square of X1: Menu/Quick/Generate Series, then type as follows: squareX1 =
To create the square-root of X2: Menu/Quick/Generate Series, then type as follows: sqrootX2 =
To create the logarithm of X3: Menu/Quick/Generate Series, then type as follows: logX3 =
To create the first lag of X4: Menu/Quick/Generate Series, then type as follows: dX4 = X4(-1),
then click OK
To estimate an ordinary least squares (OLS) regression model, then select as follows:
Quick/estimate Equation
- Equation specification y c x1 x2 x3 x4 x5 x6
Dependent Variable: Y
Included observations: 16
Prob(F-statistic) 0.000000
To interpret the coefficients, they show how a unit change in any variable affects the dependent
For example, the coefficient on x1 is 1.506187. This means that a unit increase in x1 leads to an
increase in y by 1.5062 units, holding the other variables constant. The other coefficients are
ACTIVITY:
Perform the following regression equation and interpret the results of your model
MULTICOLLINEARITY PROBLEM
The R squared is very high (0.9955) yet some variables are insignificant since the prob. Values
are greater than 0.1. The variables x1, x2 and x5 are therefore not significant. If a model has a
high R-Squared and most variables insignificant, then MULTICOLLINEARITY is a very likely
problem. Recall that multicollinearity is one of the violations of the OLS assumptions.
However, to formally test for this, we can use the following methods:
statistics/correlations. On the series list that pops up, click OK. You can also click FREEZE in
X1 X2 X3 X4 X5 X6 Y