Objectives:
- Students will demonstrate basic facility with the most common functions in SPSS.
- Students will demonstrate basic facility with the graphing function in SPSS.
- Students will display a data set using several common graphic devices (histogram, XY scatterplot and bar graph).
Readings:
- Chapter 19 in your text (Richard Field)
- Chapter 24 in your text (John H McKendrick) - skim ...or read carefully if you think you'll really need this.
Assignment:
After you've read Chapter 19 regarding the handling and display of geographic data, you should be ready to try to make some charts and graphs of your own, as well as perform a few of the more basic statistic computations. Don't panic. Follow the steps below and you'll be fine.
Steps
1. First you need data. I have transcribed the data from the appendix of Chapter 19 (p 340-1) the data Richard Field appears to have used to make several of the graphics in that chapter. Download this file here. Remember to download it to your desktop, or someplace where you know you can find it.
DATASET IN EXCEL-300_graphing_lab.xls
2. Next you'll need to open SPSS. It's in the start menu under programs on later versions of Windows. Yours may be launched elsewhere, depending on your operating system.
3. The first dialog box you'll see (figure 1 below) gives you several options for running SPSS. The option you need to choose is "Open an existing data source", because you will be using the dataset you downloaded in Step 1 above.
4. In this dialog box (figure 2), find and select (see figures in 2b) the file that you have downloaded and click OK.
Figure 1 | Figure 2 | Figure 2b | Figure 3 | Figure 4 | Figure 4b |
---|---|---|---|---|---|
|
click to enlarge |
click to enlarge |
click to enlarge |
click to enlarge |
click to enlarge |
5. Another dialog box will appear (figure 3). This box is asking you if you want to open the data range (a group of rows and columns of data) in the named worksheet (in figure 3, this worksheet is called Master) in Excel.
- **It is a good habit to create a "master" worksheet in Excel that contains the raw data that you downloaded or created in its initial form. You may want to even save it in a separate file. The reason for this practice, is to have an unspoiled version of your initial dataset, should you manage to somehow irrevocably mess up the working dataset.
6. Once you click OK, the Excel worksheet opens up in the SPSS Data Editor Window. The data is arranged in a spreadsheet format that contains variables in columns and cases in rows. There are two sheets in the window. The Data View (figure 5) is the sheet that is visible when you first open the Data Editor and contains the data. You can access the second sheet (see figure 4b) by clicking on the tab labeled Variable View and while the second sheet is similar in appearance to the first, it does not actually contain data. Instead, this second sheet contains information about the dataset that is stored with the dataset. This is where you would set the properties for the variables (UT Austin, SPSS for Windows: Getting Started).
8. In the variable view you can see that some of your data is string or "nominal" and some data is numeric and/or scale data. This may be useful to check. You may recall from a previous Excel based lab that ZIP codes (for example), though really string-nominal (text) data, often appear as, or are treated by the software as numeric data. THIS IS IMPORTANT BECAUSE GIS SOFTWARE OFTEN WILL NOT READ ZIP CODES WHICH IT RECOGNIZES AS NUMERIC DATA.
9. You may want to widen the column headings. You do it the same way as it is done in Excel. Just place your cursor in the space between the column heading cells and click and drag to widen the cell.