Professional Documents
Culture Documents
Todays Workshop
Basic grasp of how EViews manages data Creating Workfiles Importing data Running regressions Performing basic tests Creating/changing Series Working with commands
Objects
Series (Numeric or Alpha) Equations Graphs Groups
*Always comes with series for a constant, c, and residuals, resid
Workfiles
Creating a Workfile
File New Workfile
Data Structure
Time Series Dated/Regular Frequency + Date Range Cross-Sectional Undated/Unstructured # of observations Panel Balanced Panel
New Pages
By clicking on the New Page label at the bottom of the Workfile you can create new pages
Select By Frequency
Exercise #1
Open the Excel file EViewsLab_data.xls, we will be working with the Macro sheet Create a new Workfile for todays workshop
Importing Data
Copy/Past 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
Exercise #2
Import data Series from Excel sheet 1: Macro
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.
Exercise #3
Create a new page in the Workfile for the unstructured data in the Micro sheet Import, directly, the data from the Micro sheet
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
Exercise #3
Create a group for you INDEPENDENT variables (hint: consumption is your dependent variable) Find the Standard Deviation for each variable Run a correlation matrix of independent variables to determine if you might have multicolinearity (hint: look if off-diagonal absolute values are bigger than 0.5)
Regressions
Create a new Equation
In your Workfile: Object New Object Equation
Separated by spaces: *Dependent variable *Constant, c *Independent variables (or Group) Type of Regression
Sample Range
SAVE!
Statistics
Exercise #4
Plot fitted values vs. residuals Check for Heteroskedasticity and fix if necessary Check for Multicolinearity Check for Normality
Changing/Creating Variables
Edit Mode
In Spreadsheet: Toggle Edit+/- CAREFUL! No undo
OR Import directly into EViews: If ONLY Numeric Create a new Workfile Page for unstructured data
Click on New Page at bottom of Workfile
Commands
Top, Left-Hand Command Box
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
Dummy Variables
In 2nd Workfile Page
In command window type:
For a value of 1, everything else will be = 0
Exercise #5
Create a dummy variable for the alpha object unintrvn
HINT: (@left(unintrvn, 2) = No)
Help!
For general instruction or commands:
EViews PDFs ! Start Programs EViews6
All Done!
If you would like more, individual help please see the Technical Statistical Coordinator