SlideShare a Scribd company logo
1 of 24
EViews
Student Version
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, no alpha series in student version)
– 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/Irregular → Range of observations
• Save & Name
(do not have to do this for this exercise)
• New Pages (Eviews 6)
– 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 today’s 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
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
• 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
→ Correlogram
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)
• Create a new Equation
– In your Workfile:
– Object → New Object → Equation
Separated by spaces:
*Dependent variable
*Constant, c
*Independent variables
(or Group)
Regressions
Sample Range
Type of Regression
• Output
• Name = Save to Workfile
Regression Tests & Fixes
Estimate: Modify
Regression
This View
Useful to Create Model
To Run Tests
Regression
Summary
Coefficient
Summary
Statistics
SAVE!
• Looking at Residuals
– In Equation View:
– View → Actual, Fitted, Residual → Actual, Fitted, Residual Table
• Plotting Resid Vs. Fitted Values
– Generate fitted values
– In Equation View: “Forecast” → OK (is named “variable”f)
– In Workfile: Object → New Object → Graph
• Graph: resid “variable”f
• Options → Type → Scatter
Regression Tests & Fixes
• Heteroskedasticity
– In Equation View:
– View → Residual Tests → White Heteroskedasticity (no cross)
– Look at Chi-square value
from a table
(want a small value)
– Fix: Click on “Estimate”
• Click on “Options” → check box for “Heteroskedasticity consistent
coefficient covarariance” → OK
Regression Tests & Fixes
• Normality
– View → Residual Tests → Histogram-Normality Test
– Look at Jarque-Bera stat
– Fix: Depending on skew, you can adjust variables (ex:
square, log, etc) or add/delete variables
Regression Tests & Fixes
• Correlation & Multicolinearity
– Create Correlation Matrix:
– Quick → Group Statistics → Correlations
– Off-diagonal values should be less than 0.5
– Fix: Talk to your advisor
Regression Tests & Fixes
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”
• Generate new variable
– In Workfile:
• Click on “Genr”
• Enter equation:
“new variable name” = equation
• Regular math function keys
• Lag: variable(-1)
Just for Fun…
• Opening a non-excel data file
– Open peacekeeping.txt
– Open Excel and open this .txt file from Excel
• Delimitate correctly
• Student Version does not use “alpha” objects (series with words)
• Select only numeric variables or change alpha variables into numeric
values
– Import into EViews as before
• Import Directly: Proc →Import →Read Text-Locus-File
Commands
• Top, Left-Hand “Command Box”
• 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
Help!
• For general instruction or commands:
– EViews PDFs !
– Help → Users Guide (pdf)
→ Command & Programming Reference (pdf)
All Done!
If you would like more, individual help
please see the Technical Statistical
Coordinator 

More Related Content

Similar to 815cf6bd-9b11-47ea-a18e-8bafa00d2f60.ppt

SPSS an intro...
SPSS an intro...SPSS an intro...
SPSS an intro...
Jithin Zcs
 
What's new in pandas and the SciPy stack for financial users
What's new in pandas and the SciPy stack for financial usersWhat's new in pandas and the SciPy stack for financial users
What's new in pandas and the SciPy stack for financial users
Wes McKinney
 

Similar to 815cf6bd-9b11-47ea-a18e-8bafa00d2f60.ppt (20)

Hpd 1
Hpd 1Hpd 1
Hpd 1
 
SPSS an intro...
SPSS an intro...SPSS an intro...
SPSS an intro...
 
Lecture 01 variables scripts and operations
Lecture 01   variables scripts and operationsLecture 01   variables scripts and operations
Lecture 01 variables scripts and operations
 
Analytics machine learning in weka
Analytics machine learning in wekaAnalytics machine learning in weka
Analytics machine learning in weka
 
Java OOP Programming language (Part 4) - Collection
Java OOP Programming language (Part 4) - CollectionJava OOP Programming language (Part 4) - Collection
Java OOP Programming language (Part 4) - Collection
 
4 Statistical Software.pptx
4 Statistical Software.pptx4 Statistical Software.pptx
4 Statistical Software.pptx
 
Chapter 4 microsoft access 2010
Chapter 4 microsoft access 2010Chapter 4 microsoft access 2010
Chapter 4 microsoft access 2010
 
What's new in pandas and the SciPy stack for financial users
What's new in pandas and the SciPy stack for financial usersWhat's new in pandas and the SciPy stack for financial users
What's new in pandas and the SciPy stack for financial users
 
02._Object-Oriented_Programming_Concepts.ppt
02._Object-Oriented_Programming_Concepts.ppt02._Object-Oriented_Programming_Concepts.ppt
02._Object-Oriented_Programming_Concepts.ppt
 
Sas - Introduction to working under change management
Sas - Introduction to working under change managementSas - Introduction to working under change management
Sas - Introduction to working under change management
 
Introduction
IntroductionIntroduction
Introduction
 
SAS for Beginners
SAS for BeginnersSAS for Beginners
SAS for Beginners
 
Django: Advanced Models
Django: Advanced ModelsDjango: Advanced Models
Django: Advanced Models
 
Data analysis using spss
Data analysis using spssData analysis using spss
Data analysis using spss
 
Agile experiments in Machine Learning with F#
Agile experiments in Machine Learning with F#Agile experiments in Machine Learning with F#
Agile experiments in Machine Learning with F#
 
presentation Updated.pdf
presentation Updated.pdfpresentation Updated.pdf
presentation Updated.pdf
 
Taming the shrew Power BI
Taming the shrew Power BITaming the shrew Power BI
Taming the shrew Power BI
 
Ifi7184 lesson6
Ifi7184 lesson6Ifi7184 lesson6
Ifi7184 lesson6
 
L9 using datawarrior for scientific data visualization
L9 using datawarrior for scientific data visualizationL9 using datawarrior for scientific data visualization
L9 using datawarrior for scientific data visualization
 
Agile Experiments in Machine Learning
Agile Experiments in Machine LearningAgile Experiments in Machine Learning
Agile Experiments in Machine Learning
 

More from ShahidHussain265137

howdhkliyszxbhkkjhgfddxvhjkiyfddsghhhjhhhh
howdhkliyszxbhkkjhgfddxvhjkiyfddsghhhjhhhhhowdhkliyszxbhkkjhgfddxvhjkiyfddsghhhjhhhh
howdhkliyszxbhkkjhgfddxvhjkiyfddsghhhjhhhh
ShahidHussain265137
 
chap1 with questions hjh khtkgddhi tru.ppt
chap1 with questions hjh khtkgddhi tru.pptchap1 with questions hjh khtkgddhi tru.ppt
chap1 with questions hjh khtkgddhi tru.ppt
ShahidHussain265137
 
boone14ech08studentppt-120509174226-phpapp02.pptx
boone14ech08studentppt-120509174226-phpapp02.pptxboone14ech08studentppt-120509174226-phpapp02.pptx
boone14ech08studentppt-120509174226-phpapp02.pptx
ShahidHussain265137
 
chap2 kjklldfujr9oergklkjuytdsert6y789oiuhgfcfghjhvb
chap2 kjklldfujr9oergklkjuytdsert6y789oiuhgfcfghjhvbchap2 kjklldfujr9oergklkjuytdsert6y789oiuhgfcfghjhvb
chap2 kjklldfujr9oergklkjuytdsert6y789oiuhgfcfghjhvb
ShahidHussain265137
 

More from ShahidHussain265137 (20)

howdhkliyszxbhkkjhgfddxvhjkiyfddsghhhjhhhh
howdhkliyszxbhkkjhgfddxvhjkiyfddsghhhjhhhhhowdhkliyszxbhkkjhgfddxvhjkiyfddsghhhjhhhh
howdhkliyszxbhkkjhgfddxvhjkiyfddsghhhjhhhh
 
chap1 with questions hjh khtkgddhi tru.ppt
chap1 with questions hjh khtkgddhi tru.pptchap1 with questions hjh khtkgddhi tru.ppt
chap1 with questions hjh khtkgddhi tru.ppt
 
boone14ech08studentppt-120509174226-phpapp02.pptx
boone14ech08studentppt-120509174226-phpapp02.pptxboone14ech08studentppt-120509174226-phpapp02.pptx
boone14ech08studentppt-120509174226-phpapp02.pptx
 
chap2 kjklldfujr9oergklkjuytdsert6y789oiuhgfcfghjhvb
chap2 kjklldfujr9oergklkjuytdsert6y789oiuhgfcfghjhvbchap2 kjklldfujr9oergklkjuytdsert6y789oiuhgfcfghjhvb
chap2 kjklldfujr9oergklkjuytdsert6y789oiuhgfcfghjhvb
 
chap_1_powerpoint.ppt
chap_1_powerpoint.pptchap_1_powerpoint.ppt
chap_1_powerpoint.ppt
 
chapter 9 classroom ppt.ppt
chapter 9 classroom ppt.pptchapter 9 classroom ppt.ppt
chapter 9 classroom ppt.ppt
 
Poverty - Vivi.pptx
Poverty - Vivi.pptxPoverty - Vivi.pptx
Poverty - Vivi.pptx
 
mishkin_econ12ege_ch09.pptx
mishkin_econ12ege_ch09.pptxmishkin_econ12ege_ch09.pptx
mishkin_econ12ege_ch09.pptx
 
mishkin_econ12ege_ch08.pptx
mishkin_econ12ege_ch08.pptxmishkin_econ12ege_ch08.pptx
mishkin_econ12ege_ch08.pptx
 
mishkin_econ12ege_ch04.pptx
mishkin_econ12ege_ch04.pptxmishkin_econ12ege_ch04.pptx
mishkin_econ12ege_ch04.pptx
 
ch11_mish11ge_embfm.ppt
ch11_mish11ge_embfm.pptch11_mish11ge_embfm.ppt
ch11_mish11ge_embfm.ppt
 
mishkin_embfm12ege_ch03.pptx
mishkin_embfm12ege_ch03.pptxmishkin_embfm12ege_ch03.pptx
mishkin_embfm12ege_ch03.pptx
 
mishkin_econ12ege_ch06.pptx
mishkin_econ12ege_ch06.pptxmishkin_econ12ege_ch06.pptx
mishkin_econ12ege_ch06.pptx
 
mishkin_embfm12ege_ch23.pptx
mishkin_embfm12ege_ch23.pptxmishkin_embfm12ege_ch23.pptx
mishkin_embfm12ege_ch23.pptx
 
PhD Dissertation by Slidesgo.pptx
PhD Dissertation by Slidesgo.pptxPhD Dissertation by Slidesgo.pptx
PhD Dissertation by Slidesgo.pptx
 
W2_Lecture.pptx
W2_Lecture.pptxW2_Lecture.pptx
W2_Lecture.pptx
 
Lecture 3.pptx
Lecture 3.pptxLecture 3.pptx
Lecture 3.pptx
 
prem_ppt_ch18.ppt
prem_ppt_ch18.pptprem_ppt_ch18.ppt
prem_ppt_ch18.ppt
 
Concept-of-Tourism-Geography.ppt
Concept-of-Tourism-Geography.pptConcept-of-Tourism-Geography.ppt
Concept-of-Tourism-Geography.ppt
 
ch03.ppt
ch03.pptch03.ppt
ch03.ppt
 

Recently uploaded

1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
ppy8zfkfm
 
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
dq9vz1isj
 
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
jk0tkvfv
 
sourabh vyas1222222222222222222244444444
sourabh vyas1222222222222222222244444444sourabh vyas1222222222222222222244444444
sourabh vyas1222222222222222222244444444
saurabvyas476
 
Displacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second DerivativesDisplacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second Derivatives
23050636
 
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Valters Lauzums
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
acoha1
 
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
pwgnohujw
 
obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di Ban...
obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di  Ban...obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di  Ban...
obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di Ban...
siskavia95
 
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
yulianti213969
 
一比一原版(ucla文凭证书)加州大学洛杉矶分校毕业证学历认证官方成绩单
一比一原版(ucla文凭证书)加州大学洛杉矶分校毕业证学历认证官方成绩单一比一原版(ucla文凭证书)加州大学洛杉矶分校毕业证学历认证官方成绩单
一比一原版(ucla文凭证书)加州大学洛杉矶分校毕业证学历认证官方成绩单
aqpto5bt
 

Recently uploaded (20)

1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
 
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
 
Aggregations - The Elasticsearch "GROUP BY"
Aggregations - The Elasticsearch "GROUP BY"Aggregations - The Elasticsearch "GROUP BY"
Aggregations - The Elasticsearch "GROUP BY"
 
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
 
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital AgeCredit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
 
sourabh vyas1222222222222222222244444444
sourabh vyas1222222222222222222244444444sourabh vyas1222222222222222222244444444
sourabh vyas1222222222222222222244444444
 
Displacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second DerivativesDisplacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second Derivatives
 
Formulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdfFormulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdf
 
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
 
MATERI MANAJEMEN OF PENYAKIT TETANUS.ppt
MATERI  MANAJEMEN OF PENYAKIT TETANUS.pptMATERI  MANAJEMEN OF PENYAKIT TETANUS.ppt
MATERI MANAJEMEN OF PENYAKIT TETANUS.ppt
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
 
Northern New England Tableau User Group (TUG) May 2024
Northern New England Tableau User Group (TUG) May 2024Northern New England Tableau User Group (TUG) May 2024
Northern New England Tableau User Group (TUG) May 2024
 
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
 
What is Insertion Sort. Its basic information
What is Insertion Sort. Its basic informationWhat is Insertion Sort. Its basic information
What is Insertion Sort. Its basic information
 
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam DunksNOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
 
obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di Ban...
obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di  Ban...obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di  Ban...
obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di Ban...
 
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
 
Seven tools of quality control.slideshare
Seven tools of quality control.slideshareSeven tools of quality control.slideshare
Seven tools of quality control.slideshare
 
How to Transform Clinical Trial Management with Advanced Data Analytics
How to Transform Clinical Trial Management with Advanced Data AnalyticsHow to Transform Clinical Trial Management with Advanced Data Analytics
How to Transform Clinical Trial Management with Advanced Data Analytics
 
一比一原版(ucla文凭证书)加州大学洛杉矶分校毕业证学历认证官方成绩单
一比一原版(ucla文凭证书)加州大学洛杉矶分校毕业证学历认证官方成绩单一比一原版(ucla文凭证书)加州大学洛杉矶分校毕业证学历认证官方成绩单
一比一原版(ucla文凭证书)加州大学洛杉矶分校毕业证学历认证官方成绩单
 

815cf6bd-9b11-47ea-a18e-8bafa00d2f60.ppt

  • 2. 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
  • 3. Thinking About EViews • Workfile Central place to keep all of your work • Objects – Series (Numeric, no alpha series in student version) – Equations – Graphs – Groups *Always comes with series for a constant, c, and residuals, resid
  • 4. Workfiles • Creating a Workfile – File → New → Workfile • Data Structure Time Series → Dated/Regular → Frequency + Date Range Cross-Sectional → Undated/Irregular → Range of observations • Save & Name (do not have to do this for this exercise) • New Pages (Eviews 6) – By clicking on the “New Page” label at the bottom of the Workfile you can create new pages • Select “By Frequency”
  • 5. Exercise #1 • Open the Excel file EViewsLab_data.xls, we will be working with the “Macro” sheet • Create a new Workfile for today’s workshop
  • 6. 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 3. Copy Data 4. Paste into Eviews Cell 1
  • 7. Exercise #2 • Import data Series from Excel sheet 1: Macro
  • 8. 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.
  • 9. 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
  • 10. 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 → Correlogram
  • 11. 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)
  • 12. • Create a new Equation – In your Workfile: – Object → New Object → Equation Separated by spaces: *Dependent variable *Constant, c *Independent variables (or Group) Regressions Sample Range Type of Regression
  • 13. • Output • Name = Save to Workfile Regression Tests & Fixes Estimate: Modify Regression This View Useful to Create Model To Run Tests Regression Summary Coefficient Summary Statistics SAVE!
  • 14. • Looking at Residuals – In Equation View: – View → Actual, Fitted, Residual → Actual, Fitted, Residual Table • Plotting Resid Vs. Fitted Values – Generate fitted values – In Equation View: “Forecast” → OK (is named “variable”f) – In Workfile: Object → New Object → Graph • Graph: resid “variable”f • Options → Type → Scatter Regression Tests & Fixes
  • 15. • Heteroskedasticity – In Equation View: – View → Residual Tests → White Heteroskedasticity (no cross) – Look at Chi-square value from a table (want a small value) – Fix: Click on “Estimate” • Click on “Options” → check box for “Heteroskedasticity consistent coefficient covarariance” → OK Regression Tests & Fixes
  • 16. • Normality – View → Residual Tests → Histogram-Normality Test – Look at Jarque-Bera stat – Fix: Depending on skew, you can adjust variables (ex: square, log, etc) or add/delete variables Regression Tests & Fixes
  • 17. • Correlation & Multicolinearity – Create Correlation Matrix: – Quick → Group Statistics → Correlations – Off-diagonal values should be less than 0.5 – Fix: Talk to your advisor Regression Tests & Fixes
  • 18. Exercise #4 • Plot fitted values vs. residuals • Check for Heteroskedasticity and fix if necessary • Check for Multicolinearity • Check for Normality
  • 19. Changing/Creating Variables • Edit Mode – In Spreadsheet: Toggle “Edit+/-” – CAREFUL! No “undo” • Generate new variable – In Workfile: • Click on “Genr” • Enter equation: “new variable name” = equation • Regular math function keys • Lag: variable(-1)
  • 20. Just for Fun… • Opening a non-excel data file – Open peacekeeping.txt – Open Excel and open this .txt file from Excel • Delimitate correctly • Student Version does not use “alpha” objects (series with words) • Select only numeric variables or change alpha variables into numeric values – Import into EViews as before • Import Directly: Proc →Import →Read Text-Locus-File
  • 21. Commands • Top, Left-Hand “Command Box” • Single commands • Batch (program) • Syntax: Command (Option) Argument
  • 22. 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
  • 23. Help! • For general instruction or commands: – EViews PDFs ! – Help → Users Guide (pdf) → Command & Programming Reference (pdf)
  • 24. All Done! If you would like more, individual help please see the Technical Statistical Coordinator 

Editor's Notes

  1. • The View button lets you change the view that is displayed in the object window. The available choices will differ, depending upon the object type. • The Proc button provides access to a menu of procedures that are available for the object. • The Object button lets you manage your objects. You can store the object on disk, name, delete, copy, or print the object. • The Print button lets you print the current view of the object (the window contents). • The Name button allows you to name or rename the object. • The Freeze button creates a new object graph, table, or text object out of the current view.
  2. Should be < 5.99 Chi-square with 2df at 5%
  3. Should be < 5.99 Chi-square with 2df at 5%
  4. Should be < 5.99 Chi-square with 2df at 5%
  5. Should be < 5.99 Chi-square with 2df at 5%
  6. Should be < 5.99 Chi-square with 2df at 5%