
Eviews Tutorial
1. Importing Data from and Excel File
a. Open a new Workfile
i. Note if you wanted to just type in or copy/paste data, you can just
go to Quick ->Empty Group and it will bring up an empty
spreadsheet. If not…
b. Procs -> Import -> Read Lotus -> choose cps85.xls
c. Choose Undated – In the case of the example cps85.xls, there are 534
observations. Enter 534 in the appropriate box.
d. Enter number of variables – 6, then press Enter
e. To confirm data is correct, Highlight all variables -> Show.
f. Save Work File
g. Note that “c” is a constant term and “rsd” is a blank column for residuals.
We’ll use those later.
2. Creating Variables
a. Create a variable that adds educ and exper together.
b. In the dialog box at the top of the screen type “genr edexp=educ+exper”
c. Try experience squared
3. Finding Mean and Standard Deviation
a. Select the Variables that you want to calculate Means for – Age,
Education, Earnings
b. Show
c. Select View -> Descriptive Stats (in this case it doesn’t matter if you use
individual or grouped)
4. Conditional Mean
a. Select a single Variable ->show
b. Choose view->desc stats->by class
c. Type in Female (or whatever variable you want to condition it on) and
enter
5. Scatterplot and Graphing
a. Highlight Variables to Plot and press show -> example: Educ Wage
b. Choose View->Graph->Scatter with Regression Line (Regression Line
includes a best fit line)
6. Regressions
a. OLS with single variable (include constant)
b. Quick -> Regression (or type ls wage educ)
c. Choose appropriate Regression Type
i. Interpret the Coefficient
ii. Is it Statistically Significant?
iii. White Standard Errors correct for Heteroskedasticity, use ls(s)
d. OLS with Multiple Variables (female dummy)
i. Interpret Dummy Variables
ii. White