Overview of Eviews
Overview of Eviews
6/28/2011
Econometric Software
Software packages for econometric analyses:
Autobox - Automatic Box-Jenkins (ARIMA and Transfer Function Modeling) EViews - Econometric Views GAUSS (software) gretl - Gnu Regression, Econometrics and Time-series Library OxMetrics - Ox Based Econometrics PcGive, see OxMetrics RATS - Regression Analysis of Time Series Stata - all purpose package SAS System - all purpose tool TSP - Time Series Processor, econometric package and programming language TSM (Time Series Modeling)
6/28/2011 2
6/28/2011
commands either by clicking on command buttons or by typing equivalent command into the command window. status line: at the bottom, providing additional information on the status of various settings of the program. work area: between the command window and the status line, where the results of operations will be displayed.
6/28/2011
Eviews Window
6/28/2011
6/28/2011
6/28/2011
2. Creating a Workfile
1)
Workfile: The most important object container in Eviews, which can be used to store data and results. Create a workfile:
Click on the File menu, then on New, and on Workfile In the window appeared:
2)
Choose the type of your data. For example, you can select Dated-regular frequency for time-series data; Input the start and end dates of your data; entering dates June 1997 to September 2010 will be entered as 1997:2 or 2010:3. First quarter of 1999 to June 2006 will be entered as 1999:1 2006:2, etc. Name the workfile (optional). Click OK.
10
3) 4)
6/28/2011
6/28/2011
11
Objects
6/28/2011
12
Data Structure
Time Series Dated/Regular Frequency + Date Range Cross-Sectional Undated/Unstructured # of observations Panel Balanced Panel
Exercise #1
Open the Excel file Waifemtrial.csv. The file contains data on a number of macroeconomic variables of a country.
Create a new Workfile in Eviews We now want to get the data into Eviews
6/28/2011
14
3. Importing Data
Import from excel file:
Simply copy/cut and paste into EVIEWS, or Open the file, make sure the observations for different variables are arranged in columns, with names on top. Copy the names of the variables, and remember the Upper left data cell (location of first data, i.e., A2), then close the spreadsheet. In main Eviews window, after creating the workfile, click File, Import , then Read Text-Lotus-Excel, and specify the location of data file. In the opened dialog box, fill in the Upper left data cell, then paste the names of the variables, click OK.
6/28/2011 15
Group (Edit Series). Next enter the variables, starting with the name, in the grey box to the immediate right of obs.
6/28/2011
16
or click on File and then SaveAs in the main menu. Store individual series: click Store in the workfile toolbar. If you need to retrieve the series, you can simply click on 6/28/2011 Fetch in the workfile toolbar. 17
3. Importing Data
Copy/Paste Method
1. Open new Empty Group
Quick Empty Group Click on Cell 1 and press the Up arrow on keyboard
2. Open Excel
Make sure variable names are one constant String (no spaces!) Troubleshoot for other problems
3. Importing Data
Import Directly
1. Count the number of variables and CLOSE Excel file 2. Proc Import Read Text-Locus-File 3. Browse for Excel file 4.
6/28/2011
19
6/28/2011
20
6/28/2011
21
5. Descriptive Statistics
Group
Stores select series together Object New Object Group Select Series Name
Descriptive Statistics
When group spreadsheet is open: View Descriptive Statistics Common Sample Covariance Correlations
6/28/2011
22
Exercise #2
Create a group of variables
Find the Standard Deviation for each variable Run a correlation matrix of independent variables to determine if you might have multicollinearity (hint: look if off-diagonal absolute values are bigger than 0.5)
6/28/2011 23
6/28/2011
24
6/28/2011
25
6/28/2011
26
6/28/2011
28
Sample Range
6/28/2011 29
This View
Coefficient Summary
SAVE!
Statistics
6/28/2011
31
6/28/2011
33
6/28/2011
34
Exercise #3
Plot fitted values vs. residuals Check for Heteroskedasticity and fix if necessary Check for Multicolinearity Check for Normality
6/28/2011
35
9. Changing/Creating Variables
Edit Mode
In Spreadsheet: Toggle Edit+/- CAREFUL! No undo
36
10. Commands
Top, Left-Hand Command Box
6/28/2011
37
10. Commands
Frequently Used Commands:
show variable genr variable = equation sample n1 n2 n1 and n2 represent the start and end of range Or qualifiers such that: sample variable if >15
Statistical Operations:
equation name .ls(h) dependent c independent variables cor variables group variables
6/28/2011 38
Help!
For general instruction or commands:
EViews PDFs ! Start Programs EViews6
6/28/2011
39
All Done!
Practice, Practice, Practice and Practice!
6/28/2011
40