# Statistics and Decision Making (45-731) Fall 2010

Tutorial

EVIEWS TUTORIAL
(Approx completion time: ~ 35 minutes)

This tutorial is organized in three main sections. These sections cover basic topics such as creating workfiles and generating variables, copying Eviews output into Word, importing data from Excel to Eviews and editing data. Let us start with some basic formatting Begin by launching Eviews. First, we’ll standardize some options. -Click on Options / Window and Font Options -Under “Warn on Close,” we wish to have a check mark only for programs-text. Make sure there is a check mark for this option and remove check marks for the other options. -Under “Allow Only One Untitled,” we want check marks for all except seriesmatrices-coefficients. -Click OK Next -Click on Options / Workfile Storage Defaults -Choose Double Precision -Under “Backup Files,” we wish to have a check mark. Remove check marks for other options -Click OK 1. CREATING A WORKFILE & GENERATING VARIABLES Now, we will create a workfile. -Click on File / New/ Workfile -We will create an undated workfile, so click the down arrow under Date Specification and choose Integer Date -Enter 1 for the start observation and 1000 for the end observation then click Ok. Note that the workfile window is the most important of the various windows that you can open in Eviews. To perform any analysis using Eviews, you need to have a workfile open. To generate a sample from a normal distribution: -Type “genr z=nrnd” in the white area near the top of the screen

To look at the data you generated. click Add Text -Select Center and Top -Enter a title for the diagram: “Scatter plot of y versus x” and click OK -Click Edit / Copy at the top of the workfile window. generating new variables. to illustrate labeling graphs and copying from Eviews to Word. the generation of random numbers from the normal and uniform distributions.e. viewing the data in a spreadsheet. spreadsheet and histogram). Now generate a new variable. 2. and viewing the scatter diagram. click freeze -In the new scatter diagram window. COPYING EVIEWS OUTPUT TO WORD Next. -View the scatter diagram of x and y as above -In the scatter diagram window.Statistics and Decision Making (45-731) Fall 2010 Tutorial Note that variable name “z” has appeared in your work file. double click on “z” in the workfile window -Click View / Descriptive Statistics / Histogram and Stats -Click on the x in the upper right corner of the histogram to close it. viewing descriptive statistics. -Type “genr y=x+z/10” To look at relationship between x and y. then close as before. and click OK on the resulting window -Open a Word file and click Edit / Paste (in Word) . -Hold down the ctrl key and click x and y (in that order) so that they are both highlighted in blue. we have illustrated the creation of an undated work file. -Right-click the mouse and choose Open / As group -Click View / Graph / Scatter -Click View / Descriptive Statistics / Common Sample To summarize so far. To generate a sample from the uniform distribution: -Type “genr x=rnd” in the white area near the top of the screen -Look at the data as you did for the normal distribution (i.

-Generate a new variable. IMPORTING AND EDITING DATA To import data from Excel. -Click name and enter: “Graph_x_y” -Click OK. and blank column headings -Release the left mouse button -With the pointer on the blue area. that is a product of x and z by typing “genr y=x*z” (note that this replaces previous y with new values) -Do a scatter plot of x and y as above to see the relationship of x and new y Delete the work file without saving -Click upper right-hand-corner X of the work file and click no when prompted about saving the work file 3. you must give it a name. drag the pointer across the Y. y. so return to Eviews Note that if you wish to save a graph as part of the workfile. while holding down the left mouse button. -Open Excel . Now. This concludes illustration of copying from Eviews to Word.Statistics and Decision Making (45-731) Fall 2010 Tutorial -This completes illustration of copying a graph to Word. we will illustrate copying summary statistics. You will see that the graph name is now in the workfile. right-click and choose copy -Choose formatted -Then go to your Word file and click paste. -Hold down ctrl and click on x. Now close the scatter plot. Double-clicking on the name will re-open the graph. For example. X. y. -Mark the right-most four columns by clicking the upper of the two Z’s. and z -Right-click and open as group -Choose View / Descriptive Statistics / Common Sample -Click the box in the upper-right of the spreadsheet to expand to full screen -Click the arrow at the upper-right of the window and click the arrow at the lower left of the window. and. We will now explain how to use the genr command to perform standard algebraic computations.