Introduction To Eviews

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 55

Creating a workfile and importing data

• Create a workfile that will hold the data


• Select New from the File menu
• Choose Workfile.
• The ‘Workfile Create’ window will be displayed.
• Under ‘Workfile structure type’, keep the default
option, Dated – regular frequncy
• Under ‘Date specification’, choose Monthly.
• Type the start and end dates for the sample into
the boxes
• Two pairs of dates are displayed, ‘Range’ and
‘Sample’:
– the first one is the range of dates contained in the
workfile and
– the second one (which is the same as above in this
case) is for the current workfile sample.
• Two objects are also displayed:
– C (which is a vector that will eventually contain the
parameters of any estimated models) and
– RESID (a residuals series, which will currently be
empty).
We are going to use as an example a time
series of UK average house price data
obtained from Nationwide, which
comprises 197 monthly observations from
January 1991 to May 2007. The frequency
of the data (Monthly) should be set and
the start (1991:01) and end (2007:05)
dates should be inputted.
Use file UKHP.xls
Note the format of date entry for monthly and
quarterly data: YYYY:M and YYYY:Q, respectively.
For daily data, a US date format must usually be
used depending on how EViews has been set up:
MM/DD/YYYY (e.g. 03/01/1999 would be 1st
March 1999, not 3rd January).
Caution therefore needs to be exercised here to
ensure that the date format used is the correct
one.
Type the start and end dates for the sample into
the boxes: 1991:01 and 2007:05 respectively.
Importing the data
• Import the data from the Excel file UKHP.XLS.
• So from the File menu, select Import and Read
Text-Lotus-Excel.
• You will then be prompted to select the directory
and file name. Once you have found the directory
where the file is stored, enter UKHP.XLS in the
‘file name’ box and select the file type ‘Excel
(∗.xls)’.
• The window (‘Excel Spreadsheet Import’) will be
displayed.
• You have to choose the order of your data: by observations
(series in columns as they are in this and most other cases) or by
series (series in rows).
• Also you could provide the names for your series in the relevant
box.
• If the names of the series are already in the imported Excel data
file, you can simply enter the number of series (which you are
importing) in the ‘Names for series or Number if named in file’
field in the dialog box.
• In this case, enter HP, say, for house prices.
• The ‘Upper-left data cell’ refers to the first cell in the
spreadsheet that actually contains numbers.
• In this case, it can be left at B2 as the first column in the
spreadsheet contains only dates and we do not need to import
those since EViews will date the observations itself.
• You should also choose the sample of the data that you wish to
import. This box can almost always be left at EViews’ suggestion
which defaults to the current workfile sample.
• Click OK and the series will be imported.
• The series will appear as a new icon in the workfile window,
Verifying the data
• Double click on the new hp icon that has
appeared,
• This will open up a spreadsheet window within
EViews containing the monthly house price
values.
• Check a few observations at random.
• Save the workfile
• Click on the Save As button from the File menu
and select Save Active Workfile and click OK.
Transformations
• Variables of interest can be created in EViews by
selecting the Genr button from the workfile
toolbar
• Typing in the relevant formulae.
• We have a time series called Z.
• The latter can be modified in the following ways
so as to create Variables A, B, C, etc.
• Simply type ‘new variable = function of old
variable(s)’.
• The variables will be displayed in the same
workfile window as the original (imported) series
Calculate simple percentage
changes in the series. Click
Genr and type DHP = 100*(HP-
HP(-1))/HP(-1). It is important
to note that this new series,
DHP, will be a series of monthly
changes and will not be
annualised.
Computing summary statistics
• Select Quick/Series Statistics/Histogram and Stats
• Type in the name of the variable (DHP)
• Summary statistics
– the mean,
– maximum and minimum,
– standard deviation,
– higher moments and
– a test for whether the series is normally distributed
• are all presented.
• Other useful statistics and transformations can be
obtained by selecting the command Quick/Series
Statistics,
Plots
• EViews supports a wide range of graph types
• Line graphs, bar graphs, pie charts, mixed line--bar
graphs, high--low graphs and scatterplots
• A variety of options permits the user to select the line
types, colour, border characteristics, headings, shading
and scaling,
• From the main menu, select Quick/Graph and type in
the name of the series that you want to plot (HP to
plot the level of house prices) and click OK.
• You will be prompted with the Graph window where
you choose the type of graph that you want
Printing results
• Results can be printed at any point by selecting
the Print button on the object window toolbar.
• The whole current window contents will be
printed.
• Choosing View/Print Selected from the workfile
window prints the default view for all of the
selected objects.
• Graphs can be copied into the clipboard if desired
by right clicking on the graph and choosing Copy.
Saving data results and workfile
• Data generated in EViews can be exported to
other Windows applications, e.g. Microsoft Excel.
• From the object toolbar, select
Procs/Export/Write Text-Lotus-Excel.
• You will then be asked to provide a name for the
exported file and to select the appropriate
directory. The next window will ask you to select
all the series that you want to export, together
with the sample period.

You might also like