Brief Eviews Tutorial
Brief Eviews Tutorial
Getting started
Opening the EViews opens the starting window. White part is the command window.
In the menu bar of EViews, there is Help menu, from where you can find extremely extensive
manuals. Especially the User’s Guide is very useful and comprehensive, and it explains all functions
of EViews step-by-step.
You can access most of the EViews functionality via menus. Just browse through the menus, and find
the proper command. You will then be guided through several windows that prompt you for the
information required to perform the command. (EViews can be used by programming also, but it is
not taught in this course.)
EViews organizes data, graphs, output and so forth, as objects. Each of these objects can be copied,
saved, cut-and-pasted into other Windows programs, or used for further analysis.
There are many ways how data can be imported to EViews. We introduce how data can be imported
directly from Excel-file.
2
In EViews select File → Open → Foreign Data as Workfile and find the Excel file you just saved.
EViews will automatically recognize the Excel file and opens following 4-step data importing wizard:
When the importation is finished, do a cross-check with your raw data file. It is good to save the
workfile right away. (File → Save As…) Remember also to save your EViews workfile. Later on,
you can open the file in EViews from File → Open → EViews Workfile
In addition, it is always important to remember to save your work every now and then during the
working.
Notice that there are already two series in the workfile: c and resid. They stand for “constant” and
“residuals”. Every time you estimate something, c saves the intercept of the regression and resid
saves the residuals.
3
4
Example: You have a variable of average income in your raw data, named avginc. You need to create
a logarithmic transformation of the income variable. You can create a new variable, loginc, which is
a natural logarithm of the existing variable avginc, as follows:
When working with time series data, differences and lags (and leads) are frequently used:
d(variable) difference
variable(-1) variable lagged by one period
variable(+1) variable lead by one period
Many actions can be done more quickly in command window, instead of browsing through the menus.
For example, transformations are most easily specified there:
Type series loginc = log(avginc), which generates a new series loginc, the natural log of avginc.
If you don’t know or remember the name of the command, often the menu Quick contains the
procedure you need.
4
5
Choose variables that you want to analyze. If you want to analyze one variable, choose it by double-
clicking it. If you want to analyze multiple variables at the same time, choose variables by clicking
their names while holding Ctrl. Then right click with the mouse and select Open → as Group.
From the View menu, you can find all kinds of tools for analyzing the data, e.g. following (NB. Menu
looks a bit different depending on whether you analyze one series or multiple series at the same time):
- Spreadsheet: ”raw” data
- Graph: different types of graphs
- Descriptive Statistics & Tests: Statistical tests, tables, etc.
- One-Way Tabulation / N-Way Tabulation
- Covariance Analysis: covariance and correlation matrices
5
6
Graphs
Example 1. Line graph.
Example 2. Scatterplot.
6
7
Select variables growth and tradeshare (hold Ctrl). Click right-hand side button of your mouse, and
select Open → as Equation.
In opening Equation Estimation window, in Specification sheet, you can modify equation if needed.
From Method menu, you can select estimation method (Least Squares as default).
7
8
Heteroskedasticity-robust standard errors can be obtained from Options sheet by selecting Huber-
White from Covariance method menu.