Chapter 1
IN THIS CHAPTER
Considering the quality of your data
Communicating with SPSS
Seeing how SPSS works
Finding help when you’re stuck
A statistic is a number, but it's a special kind of number. A statistic is a measurement of some sort. It’s fundamentally a count of something — occurrences, speed, amount, or whatever. A statistic is calculated using a sample. In a sense, a sample is the keyhole you have to peer through to see the population, which is what you’re trying to understand. The value at the population level — the average height of an American male, for instance — is called a parameter. Unless you’ve got all the data there is, and you’ve collected a census of the population, you have to make do with the data in your sample. The job of SPSS is to calculate. Your job is to provide a good sample. Together you try to understand the population even though all you have is a sample.
In this chapter, we discuss the importance of having accurate, reliable data, and some of the implications when this is not the case. We talk also about how best to organize your data in SPSS and the different kinds of files that SPSS creates. We take a trip down memory lane and discuss the origins of SPSS so you can understand all of its many names. We discuss what can be done in the program and the different ways of communicating with the software. Finally, we spend some time discussing different ways in which you can get help when navigating SPSS.
It's important to have appropriate expectations. In this section, we discuss the various roles that all parties play with regard to learning to use SPSS.
After you give SPSS data and instructions, it will perform the calculations for you. The data and the metadata — the information about the data — have to be correct. (We have a lot to say about metadata.) The instructions have to be correct as well. Correct data processed with the wrong technique won’t give you the results you need.
SPSS won’t make math errors. That’s not the kind of errors computers make. They always do exactly what we tell them to do, and sometimes that's the problem. SPSS’s job is to take data that has been declared correctly and produce statistical results in the form of tables and charts that allow you to draw conclusions about your data — if you know how to interpret those results.
Your authors, Jesus and Keith, have had so many hours using SPSS that we’ve lost count. You may have heard of the somewhat controversial 10,000 hour rule, which states that you need that many hours of “deliberate practice” to truly master a complex subject. Well, you’ll be pleased to know that Jesus and Keith each have more than 10,000 classroom hours teaching SPSS in addition to decades of using it on our own projects.
As the authors, we are primarily responsible for the following:
Your number one job is to relax. You might be reading this book because you're up against a deadline or something in SPSS is causing you stress. However, if you take a little time now to understand how to work in SPSS efficiently, it will pay off in the long run. You have some other responsibilities:
SPSS doesn’t warn you when there is something wrong with your sample. Its job is to work on the data you give it. If what you give SPSS is incomplete or biased, or if there is data that doesn’t belong in there, the resulting calculations won’t reflect the population very well. Not much in the SPSS output will signal to anyone that there is a problem. So, if you’re not careful, you can conclude just about anything from your data and your calculations.
Consider the data in Table 1-1. What if you calculated the survival rate of Titanic passengers based on this small sample? What if you calculated what fraction of the passengers were in each class of service? You can easily see that you’d be in real trouble.
TABLE 1-1 Sample of Titanic Passengers
Survived or Died |
Class |
Name |
Sex |
Age |
Fare Paid |
Cabin |
Embarkation |
Died |
1 |
Andrews, Mr. Thomas, Jr. |
Male |
39 |
0.00 |
A36 |
Southampton |
Died |
1 |
Parr, Mr. William Henry Marsh |
Male |
0.00 |
Southampton |
||
Died |
1 |
Fry, Mr. Richard |
Male |
0.00 |
B102 |
Southampton |
|
Died |
1 |
Harrison, Mr. William |
Male |
40 |
0.00 |
B94 |
Southampton |
Died |
1 |
Reuchlin, Mr. John George |
Male |
38 |
0.00 |
Southampton |
|
Died |
2 |
Parkes, Mr. Francis “Frank” |
Male |
0.00 |
Southampton |
||
Died |
2 |
Cunningham, Mr. Alfred Fleming |
Male |
0.00 |
Southampton |
||
Died |
2 |
Campbell, Mr. William |
Male |
0.00 |
Southampton |
||
Died |
2 |
Frost, Mr. Anthony Wood “Archie” |
Male |
0.00 |
Southampton |
||
Died |
2 |
Knight, Mr. Robert J. |
Male |
0.00 |
Southampton |
||
Died |
2 |
Watson, Mr. Ennis Hastings |
Male |
0.00 |
Southampton |
||
Died |
3 |
Leonard, Mr. Lionel |
Male |
36 |
0.00 |
Southampton |
|
Died |
3 |
Tornquist, Mr. William Henry |
Male |
25 |
0.00 |
Southampton |
|
Died |
3 |
Johnson, Mr. William Cahoone, Jr. |
Male |
19 |
0.00 |
Southampton |
|
Died |
3 |
Johnson, Mr. Alfred |
Male |
49 |
0.00 |
Southampton |
However, consider this: Would you be tempted to drop these cases from your analysis because their fare information appears to be missing? What if fare information were provided for all the other passengers? You might drop the cases in Table 1-1 but use everyone else. You’d be dropping only a handful of passengers out of hundreds, so that would be okay, right? The answer is no, it would not be okay. As it turns out, there is a good reason that each of these passengers didn’t pay a fare (for example, Mr. Thomas Andrews, Jr., designed the ship), and if this was your data, your job would be to know that.
Sampling is a big topic, but here’s the quick version:
More than one way exists for you to command SPSS to do your bidding. You can use any of three approaches to perform any of the SPSS functions, and we cover them all in this section. The method you should choose depends not only on which interface you prefer, but also (to an extent) on the task you want performed.
SPSS has a window interface. You can issue commands by using the mouse to make menu selections that cause dialog boxes to appear. This is a fill-in-the-blanks approach to statistical analysis that guides you through the process of making choices and selecting values. The advantage of the graphical user interface (GUI) approach is that, at each step, SPSS makes sure you enter everything necessary before you can proceed to the next step. This interface is preferred for those just starting out — and if you don’t go into depth with SPSS, this may be the only interface you ever use.
Syntax is the internal language used to command actions from SPSS. It’s the command syntax of SPSS (hence, its name). Syntax is often referred to as the “command language.” You can use the Syntax command language to enter instructions into SPSS and have it do anything it’s capable of doing. In fact, when you select from menus and dialog boxes to command SPSS, you’re actually generating Syntax commands internally that do your bidding. In other words, the GUI is nothing more than the front end of a Syntax command-writing utility.
Writing (and saving) command-language programs is a good way to create processes that you expect to repeat. You can even grab a copy of the Syntax commands generated from the menu and save them to be repeated later.
Programmability refers to the myriad ways of customizing SPSS with extensions. These extensions are new capabilities that the user community adds to SPSS using the programming languages Python and R. Learning to write these powerful new features is beyond the scope of this book, but you should know that they exist. (SPSS has an entire menu called Extensions.) When you allow SPSS to do so, a number of these extensions are installed during installation.
The developers of SPSS have made every effort to make the software easy to use. SPSS prevents you from making mistakes or even forgetting something. That’s not to say it’s impossible to do something wrong in SPSS, but SPSS software works hard to keep you from running into the ditch. To foul things up, you almost have to work at figuring out a way of doing something wrong.
You always begin by defining a set of variables; then you enter data for the variables to create a number of cases. For example, if you’re doing an analysis of automobiles, each car in your study would be a case. The variables that define the cases could be things such as the year of manufacture, horsepower, and cubic inches of displacement. Each car in the study is defined as a single case, and each case is defined as a set of values assigned to the collection of variables. Every case has a value for each variable. (Well, you can have a missing value, but that’s a special situation described later.)
There are different types of variables. These types describe how the data is stored — for example, as letters (strings), as numbers, as dates, or as currency (see Chapter 4 for more information on data types). Each variable is defined as containing a certain kind of number, so you also have to define the variable’s level of measurement. For example, a scale variable is a numeric measurement, such as weight or miles per gallon. A categorical variable contains values that define a category; for example, a variable named gender
could be a categorical variable defined to contain only values 1
for female and 2
for male. Things that make sense for one type of variable don't necessarily make sense for another. For example, it makes sense to calculate the average miles per gallon, but not the average gender.
After your data is entered into SPSS — your cases are all defined by values stored in the variables — you can easily run an analysis. You’ve already finished the hard part. Running an analysis on the data is simple compared to entering the data. To run an analysis, you select the analysis you want to run from the menu, select the appropriate variables, and click OK. SPSS reads through all your cases, performs the analysis, and presents you with the output as tables or graphs. Of course, you have to know which analysis to choose. For that information, see Parts 5 and 6.
You can instruct SPSS to draw graphs and charts directly from your data the same way you instruct it to do an analysis. You select the desired graph from the menu, assign variables to it, and click OK.
All output from SPSS goes to the same place — a window named SPSS Statistics Viewer. This window displays the results of whatever you’ve done. After you’ve produced output, if you perform some action that produces more output, the new output is displayed in the same window. And almost anything you do produces output. Of course, you need to know how to interpret the output — SPSS will help you, and so does this book.
You’re not alone. Some immediate help comes directly from the SPSS software package. More help can be found online. If you find yourself stumped, you can look for help in several places:
Topics: Choosing Help ⇒ Topics from the main window of the SPSS application is your gateway to immediate help. The help is somewhat terse, but it usually provides exactly the information you need. The information is in one large Help document, presented one page at a time. Choose Contents to select a heading from an extensive table of contents, choose Index to search for a heading by entering its name, or choose Search to enter a search string inside the body of the Help text.
In the Help directory, the titles in all uppercase are descriptions of Syntax language commands.
www.ibm.com/software/reports/compatibility/clarity/index.html
.