eviewsintro

Upload: 3ces

Post on 07-Apr-2018

220 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/4/2019 eviewsintro

    1/5

    INTRODUCTION TO EVIEWS

    You can find EVIEWS 4.1 on the Manchester Computer Clusters as follows

    All Programs Programs Faculty FSSL Econometric & Statistical

    This document will give a general introduction into the workings of EVIEWS. It does not workthrough a particular example, but you can use the data which are provided in the EVIEWSTutorial data.xls spreadsheet to practice the basic techniques. There is an additional documenteviews tutorial.doc which gives you a few problems to work through with these data.

    Notation and miscellaneous

    EVIEWS commands or menu commands are printed in the courier type.

    LMC - left mouse click

    RMC - right mouse click

    DMC - double click

    Workfiles are the workhorses of EVIEWS. They store your data and results of your analysis. Eachworkfile can contain a big number of data sets. When you create a new file (FILE - NEW) you

    only have to open a new workfile. You will not need databases, programs or text files.

    As you open a new workfile you will be asked about the nature of the data. If you have dataobserved at regular intervals you can select the appropriate frequency and the start and end dates.Often, however, it will be convenient to choose Unstructured / Undated as your Workfilestructure type, especially if you have cross sectional data. You then merely have to indicate howmany observations you have (in the End Date field).

    /opt/scribd/conversion/tmp/scratch679/68953151.doc Page 1 of 5

  • 8/4/2019 eviewsintro

    2/5

    While each workfile will contain several data series, each data series is stored as its own object.Each workfile comes with a default data series "resid" and a coefficient vector c, which, at anytime, will store the residuals and coefficient estimates of the regression last run (the or in someversions , are an indication from EVIEWS that this object is a parameter vector, whereas the smallstylised line plot in the symbol to resid indicates a series of data) . When you create or importnew data series, they will appear as new data series, just as "resid" does. Double-clicking on a dataseries opens a window where you van view (spreadsheet, statistics and graphics) the data series. If

    you want to perform an operation, which involves more than one data series, you got to highlightthe data series in question (using the shift orcontrol key) and then DMC. Choose open

    group if you want to display the time series oropen equation if you want to run a regression

    involving the time series. When the operation you want to perform with the chosen set of variablesis finished, close the group again. Note, that this does not delete the individual variables. Well get

    back to this once we imported a few more data series.

    The white area beneath the command menu is called the command line. Some actions can beperformed by typing a short command in this line, which can be quicker than using the menus. Themore you familiarise yourself with EVIEWS the more often you will use these commands.

    Importing DataTwo alternative strategies exist to import data. Both strategies will be described in turn.From ExcelHave the Excel file ready with data in columns. Memorise the first data cell (eg A2), the name ofthe data sheet (if multiple sheets) and the number of variables to be imported.In EVIEWS: PROCS - IMPORT - READ TEXT LOTUS EXCEL

    Then choose file (which has to be closed in Excel)

    Confirm available informationIn the "Names of series " field either enter the requested names of the data series or just thenumber of data series to be imported. In the latter case EVIEWs will assign names

    automatically. OK

    Copy and PasteCopy data into clipboard from spreadsheet or text editorIn EVIEWS: QUICK - EMPTY GROUP (EDIT SERIES)

    LMC on upper left cell

    RMC and PASTE

    Instead of pasting data into the spreadsheet you can also just type data into the spreadsheet. On thetop of the window you can see an Edit+/- button. This locks or unlocks the spreadsheet for

    editing.

    EVIEWS will give the new series names like SER01 and unfortunately you wont be able tochange the names right here. The following procedure will enable you to rename the series to moresensible names.

    /opt/scribd/conversion/tmp/scratch679/68953151.doc Page 2 of 5

  • 8/4/2019 eviewsintro

    3/5

    Close the group by clicking on the X in the top right corner of the Group window and confirmthat you want to delete this group (recall that this will not delete the data themselves!). You willthen see the new data series icons in your worksheet file.

    RMC on the data series for which you want to change the name and choose the Rename

    option. Give the data series a sensible name. If you have plenty of data series, you should put some

    thought into how to name the series such that you remember what is what. OK

    Creating new data series

    Often you will have to create new data series. Imagine you have a time series of share prices "p",which you want to transform into a time series of log returns. QUICK - GENERATE SERIES

    Enter the requested equation. To calculate the returns of "p":rp = log(p) - log(p(-1))

    OK

    "rp" is now the time series of returns. Note that "p" =pt whereas "p(-1)" = pt-1. To perform this

    operation you can also use the command window. As you improve your EVIEWS skills you willappreciate that the command line often offers a quick way to achieve what you want.Type into the command line genr rp = log(p) - log(p(-1)) or

    series rp = log(p) - log(p(-1)) ENTER

    Genr and series is the command which makes EVIEWS generate a new data series.

    After you imported your first data series, you should save the entire workfile, which isaccomplished in the usual Microsoft manner by choosing the appropriate option in the Filedropdown menu. Workfiles have the standard file extension wf1.

    /opt/scribd/conversion/tmp/scratch679/68953151.doc Page 3 of 5

  • 8/4/2019 eviewsintro

    4/5

    Displaying and editing data series

    You can view the data series as spreadsheets (and edit them if required) or as a variety of graphics.Select the data series (one or several) you want to view. DMC and open group. You will see the

    spreadsheet with your data. On the top of the window with your data series you can see severalbuttons. The most important ones are the View, Name and the Edit+/- button.

    Should you want to edit the data you have to press the Edit+/- button before editing them.

    Renaming your data series, you use the Name button.

    When clicking on the View button a list of options appears. Take a view minutes to explore them.

    The most useful are the Line Graph, Descriptive Statistics and Correlogram

    options.

    Regression

    There are several ways to run a regression. Assume you have two variables "y" and "x" in yourworkfile and you want to regress "y" on "x", ie. you want to estimate the parameters and in

    yt = + xt + t. Select "y" and "x". DMC and Open equation

    In the equation specification window you will see "y x c". "y" and "x" are the variables youselected. EVIEWS automatically chucks in the constant "c". The convention is, that the firstvariable is the dependent variable and all following variables are the independent variables. Ifyou want to estimate without a constant term you just delete the "c". If you want to add furthervariables you type them into the window. If you want to add xt-1 you simply have to add "x(-1)"without the need to first create this time series.

    OKYou will receive a standard regression output, which you should be able to interpret. In any doubt,consult your Data Analysis notes or a standard statistics textbook..

    Again you can perform this operation from the command line

    ls y c x enter

    and you receive the same output.

    The View button on the top left of the Equation window now gives you a list of options in order to

    visualise your regression results and to perform a variety of tests. If you want to re-estimate theequation with a slightly different specification, choose the Estimate button.

    Sometimes you will need the regression residuals for further manipulation and you will want tostore them. Recall that the "resid" time series always contains the residuals of the last regression. Ifyou want to store the residuals, use the generate data option. Eg.

    genr res1 = residThe residuals will be stored in "res1". While the resid series will change its values as you run anew regression, the res1 series will now remain unchanged.

    Also note that the object in your workfile will always store the parameters of the last regressionyou run, much like the resid data series object. As with the residuals, if you want to store the

    parameter values you need to create a new coefficient vector by typing the following command inthe command line: coef c_save = c, which saves a new coefficient object named c_save.

    You might want to save a particular specification and its results. You can do this by using the

    Name button. You are asked for a name of the equation you want to store. Once you did this yourequation will appear as an object in the workfile.

    /opt/scribd/conversion/tmp/scratch679/68953151.doc Page 4 of 5

  • 8/4/2019 eviewsintro

    5/5

    When you close a regression window you will be asked whether you want to delete the regression.Recall that this will merely delete the regression window but not the data series themselves. Henceyou can safely answer yes to this, unless you want to save the entire regression specification (see

    previous paragraph).

    Useful EVIEWS commands

    log(x) calculates the natural logarithm of x

    x(-1) refers to x lagged by one periodx(-2) refers to x lagged by two periods

    d(x) calculates the difference, x x(-1)

    scalar a = 21.3 sets a to a particular value

    scalar b =3^3 sets b to 3*3*3 = 27

    genr a = b*b generates a series, here the square of b

    genr dy = y - y(-1) sets dy to the differenced series of y

    /opt/scribd/conversion/tmp/scratch679/68953151.doc Page 5 of 5