Documente Academic
Documente Profesional
Documente Cultură
Today’s Workshop
• Basic grasp of how EViews manages data
• Creating Workfiles
• Importing data
• Running regressions
• Performing basic tests
• Creating/changing Series
• Working with commands
Thinking About EViews
• Workfile
Central place to keep all of your work
• Objects
– Series (Numeric or Alpha)
– Equations
– Graphs
– Groups
• 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
2. Open Excel
• Make sure variable names are one constant “String” (no spaces!)
• Troubleshoot for other problems
3. Copy Data
4. Paste into Eviews Cell 1
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
• 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)
Separated by spaces:
*Dependent variable
*Constant, c
*Independent variables
(or Group)
Type of Regression
Sample Range
Regression Tests & Fixes
Estimate: Modify
• Output Useful to Create Model
Regression
To Run Tests
Regression
Summary
This View
Coefficient
Summary
SAVE!
Statistics
• Edit Mode
– In Spreadsheet: Toggle “Edit+/-”
– CAREFUL! No “undo”
• Single commands
• Batch (program)
• Syntax:
Command (Option) Argument
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: