ECON 140 - Econometrics

WINTER 2000

Professor Oscar Jorda


 

User’s Guide to Using EViews

This is a quick reference guide to the most important EViews commands that you will need for the class. The manuals are available in the "help" option of the main menu of EViews. There will be a copy of the manuals available for consultation in the computer room. In addition, you have the option to purchase the student version of EViews which includes the manuals. A good introduction to EViews fundamentals can be found at http://faculty.washington.edu/ezivot/eviews.htm . I highly recommended it if you feel you need additional help.
 
 

  1. Getting Started
To begin a project you need to create a "workfile" to store all your work (series, graphs, equations, etc.). Create a new workfile by clicking File/New/Workfile and provide the necessary information in the dialog that appears: Now you can fill your workfile with "objects" such as series, equations, graphs, etc.
    1. Creating Objects
If you want to enter data by hand: If you want to import data from an external file:

EViews can handle text files, excel files and lotus files.


 
 
  1. Elementary Statistics

  2.  

     
     
     

    The first step is to take a look at the data by graphing it and inspecting the basic statistics associated with it.
     

    1. Graphs
Select the series that you wish to graph by highlighting them with the mouse. You may want to have individual graphs for each series or have two or more series into one graph. For this example, suppose you want to inspect two series.
    1. Elementary Statistics
ECON 140 - Econometrics

WINTER 2000

Professor Oscar Jorda


 

User’s Guide to Using EViews – Part II

Here are some useful tips on regression analysis and new procedures that are now available with the new version of EViews (3.0)

Data Management

EViews has improved the way you can import data from outside files. Importing series from ASCII files has become easier. I encourage you to explore the options by looking into the manuals or in the help menu, particularly if you are working in other projects outside class.

Interesting Web sites

The Web provides an enormous amount of information that is very easy to manipulate to load into EViews. The Library of the University of Michigan offers a particularly good service. They organize the information by topics and provide direct links to the original sources of data. They also provide a brief explanation of what you will find in each site. The address is:

http://www.lib.umich.edu/libhome/Documents.center/stats.html

For economic data, the Federal Reserve Bank of St. Louis has a useful site:

http://www.stls.frb.org/fred/

Other sites are listed in the courses main web page.

Hypothesis Testing on the Mean, Variance and Median

EViews 3.0 now allows you to directly test hypotheses regarding the moments of a given sample. When you select a series, click View/Test for Descriptive Stats/Simple Hypothesis Tests. You will get a dialog box titled Series Distribution Tests with the option to provide different values for the mean, variance and median that you would like to test for. For example, if I want to test the null hypothesis that the mean is 3, all you have to do is enter that value in the window titled Mean and hit OK. The test will provide the t-statistic and the p-value.

Regression analysis

The easiest way is to click on Quick/Estimate Equation in the main menu. A dialog window will open. All you have to do is type in the name of the dependant variable first, followed by "c" (to include a constant in the regression if you wish) and the names of the explanatory variables, all separated by a space. Hit OK and you will obtain the result.

Alternatively, you could have typed: LS Y C X1 X2 in the command window and then hit enter. LS stands for "Least Squares", Y is the dependant variable and X1 and X2 the independent variables in this example. Of course, the names of the variables Y, X1, X2 will be different in your workfile (they might be, for example, GDP, UNEM, INF)

Transformations of variables

The easiest method is using the command window. Suppose that I want to create a new variable, say X2, which is the square of variable X. In the command window type: genr X2 = X^2. This will create the new variable X2.

Useful commands: + (add), - (subtract), * (multiply), / (divide), ^ (raise to the power), log(X) (take the log X)