EViews Workshop

Embed Size (px)

Citation preview

  • 7/31/2019 EViews Workshop

    1/26

    EViews

  • 7/31/2019 EViews Workshop

    2/26

  • 7/31/2019 EViews Workshop

    3/26

    ThinkingAbout EViews

    Workfile

    Central place to keep

    all of your work

    Objects

    Series (Numeric or Alpha)

    Equations

    Graphs

    Groups

    *Always comes with

    series for a constant, c,

    and residuals, resid

  • 7/31/2019 EViews Workshop

    4/26

    Workfiles

    Creating a Workfile

    File New Workfile

    Data Structure

    Time Series Dated/Regular Frequency + Date RangeCross-Sectional Undated/Unstructured # of observations

    Panel Balanced Panel

    Save & Name(do not have to do this for this exercise)

    New Pages

    By clicking on the New Page label at the bottom of the

    Workfile you can create new pages

    Select By Frequency

  • 7/31/2019 EViews Workshop

    5/26

    Exercise #1

    Open the Excel file EViewsLab_data.xls, we

    will be working with the Macro sheet

    Create a new Workfile for todays workshop

  • 7/31/2019 EViews Workshop

    6/26

    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/31/2019 EViews Workshop

    7/26

    Exercise #2

    Import data Series from Excel sheet 1: Macro

  • 7/31/2019 EViews Workshop

    8/26

    Importing Data

    Import Directly1. Count the number of variables and CLOSE Excel file2. Proc Import Read Text-Locus-File

    3. Browse for Excel file

    4.

  • 7/31/2019 EViews Workshop

    9/26

  • 7/31/2019 EViews Workshop

    10/26

    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

  • 7/31/2019 EViews Workshop

    11/26

    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 havemulticolinearity (hint: look if off-diagonalabsolute values are bigger than 0.5)

  • 7/31/2019 EViews Workshop

    12/26

    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

  • 7/31/2019 EViews Workshop

    13/26

    Output

    Name = Save to Workfile

    Regression Tests & FixesEstimate: Modify

    Regression

    This View

    Useful to Create Model

    To Run Tests

    Regression

    Summary

    Coefficient

    Summary

    Statistics

    SAVE!

  • 7/31/2019 EViews Workshop

    14/26

  • 7/31/2019 EViews Workshop

    15/26

    Heteroskedasticity In Equation View:

    View Residual Tests Heteroskedasticity Tests

    Choose test

    Look at Chi-square value

    from a table

    Fix:Click on Estimate

    Click on Options check box for Heteroskedasticity consistent

    coefficient covarariance OK

    Regression Tests & Fixes

  • 7/31/2019 EViews Workshop

    16/26

    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

  • 7/31/2019 EViews Workshop

    17/26

    Correlation & Multicolinearity Create Correlation Matrix:

    Select Group of independent variables

    View Covariance Analysis

    Select Correlations (unselect Covariance)

    Off-diagonal values should be less than 0.5

    Fix: Talk to your advisor

    Regression Tests & Fixes

  • 7/31/2019 EViews Workshop

    18/26

    Exercise #4

    Plot fitted values vs. residuals

    Check for Heteroskedasticity and fix if

    necessary

    Check for Multicolinearity

    Check for Normality

  • 7/31/2019 EViews Workshop

    19/26

    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)

  • 7/31/2019 EViews Workshop

    20/26

    Just for Fun

    Opening a non-excel data file Open peacekeeping.txt

    Open Excel and open this .txt file from Excel

    Delimitate correcly

    From here you should be able to import into EViews like before

    OR

    Import directly into EViews: If ONLY Numeric

    Create a new Workfile Page for unstructured data

    Click on New Page at bottom of Workfile

    Proc Import Read Text-Locus-File

    Select TEXT-ASCII file

    Specify number of variables

    Specify correct delimitations

  • 7/31/2019 EViews Workshop

    21/26

    Commands

    Top, Left-Hand Command Box

    Single commands

    Batch (program)

    Syntax:

    Command (Option) Argument

  • 7/31/2019 EViews Workshop

    22/26

  • 7/31/2019 EViews Workshop

    23/26

  • 7/31/2019 EViews Workshop

    24/26

    Exercise #5

    Create a dummy variable for the alpha object

    unintrvn

    HINT: (@left(unintrvn, 2) = No)

  • 7/31/2019 EViews Workshop

    25/26

    Help!

    For general instruction or commands:

    EViews PDFs !

    Start Programs EViews6

  • 7/31/2019 EViews Workshop

    26/26

    All Done!

    If you would like more, individual help

    please see the Technical Statistical

    Coordinator