This lab exercise details downloading SPSS data files from CourseInfo, running frequencies, recoding data to collapse percentage categories, and exporting SPSS output for use in technical reports. Before beginning, make sure you're on a PC with SPSS, available on most of the computers at UT labs and the library. You can look at the codesheet from the Fall 2000 survey to see the actual questions asked. Downloading SPSS Data Sets
When we launch the data set, the first thing we need to find out is if we correctly downloaded the data file. To do this, place the cursor on Analyze of the SPSS Menu, then pull down to Descriptive Statistics and then Frequencies. When you do this your screen should look like the figure below. ![]() When you let up on the cursor, a window should appear that looks like the one below (without the variable in the right window).
The Fall 2000 SPSS data set should have 452 cases. We can check any variable to see if there are the correct number of cases, so let's choose gender, which is question number 28. We need to move Q28 to the right window. To do this, scroll down the variable list at the right side of the left window and highlight Q28. Then click on the arrow between the two windows. This will move Q28 from the left window to the right window. The resulting display should look like the figure above. Make sure the box in the lower right corner that says "Display frequency tables" is checked. Click OK. SPSS will process the data and provide output for the information you requested. It should look like the figure below.
As noted in the Descriptive Statistics for News Research Web note, frequency distributions are a convenient and comprehensive way of reporting the results from such a survey item. The SPSS output file below indicates that there are 452 valid cases.
The table indicates that there are 230 males and
222 females in the sample.
The valid percent indicates the divisor is the number of valid
cases. In this case, both the percent and valid percent columns indicate
the same thing: Respondents were 50.9 percent male and 49.1 percent
female. (Note: The cumulative percent column doesn't provide enlightening
information when using dichotomous data.) Close your output file but do
not save it.
For Q2, you can see that it has the
following codes:
HINT: Cumulative percent can tell us
something in this case. Notice that the cumulative percent in the Very
Good row is 54.0 what is this telling us? This number is the result of adding the frequencies of Excellent and Very Good (47 + 197 = 254) and
dividing that number by the valid cases (254/452= 0.5398 * 100 = 54.0
percent).
By looking at
the cumulative percent column, we could say "Almost 95 percent of UT
students find the overall experience at UT to be good, with just over 10
percent indicating it's excellent." By a similar token, we could say
"Slightly more than five percent of UT students indicate their overall
experience is either poor or very poor." We get this by adding the poor
and very poor valid percents together (4.4 percent + 0.7 percent = 5.1
percent).
Notice that there are only 426 valid cases, and 26 "missing cases" this is data where the respondent refused to answer or didn't know an answer. These cases account for 5.8 percent of the 452 total cases in our SPSS data file. Now look at the differences in percentages between the "percent" column and the "valid percent" column. What is this telling us? The percent is giving overall figures, while valid percent only includes valid cases where a correct answer was given, e.g. looking at the "percent" column, we see that 58 percent said Gilley's ideas would improve the value of a UT education "some", but that number increases to 61.5 percent when only counting valid cases. We'd report the valid percent with a note that answers to this question are based on a subsample. Recoding Data for Collapsing Categories Often we need to manipulate our data before we have the computer calculate statistics for us. SPSS provides a lot of flexibility for collapsing categories through recoding. There are lots of steps in recoding, so it's easy to make a mistake. After you've made certain that the recoding has worked the way you want, then you can proceed with your analysis. An example will make this clear. Let's return to the example of students rating their overall experience at UT (Q2). As previously noted, we could look at cumulative percent to break the answers into dichotomous categories of "good" and "bad" ratings. However, we could also recode it. Instead of just recoding the old variable (which we might want later), let's create a new variable that will give us values for "good" and "bad" ratings. Now, to create our new variable, we go to Transform, and then Recode and choose "into different variable." When you do this, a window like the one below will open. ![]() When you let up on the cursor, a window something like the one below will open.
The first thing we want to do is send the variable we want to recode (in th the variable into the right-hand columm.
Next type the name of the new variable we're
creating in the box labeled, "Name," in the "Ouput Variable" box. Let's
name it "Ratings." Then click on "Change."
To fill in the blanks in the window, choose the option "Range" and
enter "1" through "3." Next, in the box on
the right side of the window labeled new value enter the value "1," and
click the button labeled "Add." It's generally a good idea to run frequencies on a variable you recoded or a new variable you've created to make sure that everything has worked the way you want it to. You already know how to do that. Give it a try and make sure that you have output like that shown below.
Running frequencies on our new variable (which we'll find at the bottom of our
variable list in the left box), we'll notice that there are 452 valid
cases and two categories for ratings: Good - 429 students (94.9 percent)
and Bad - 23 students (5.1 percent). Now we have a dichotomous
variable. If you see something that you'd like to use in the output window, just click on it. That will put a red arrow beside the element. Then click on the "File" button at the upper left corner of the window and scroll down to "Export." You should see something like the figure below.
Click on "Export" and you'll see a window like the one below.
Click on the "Browse" button, and choose a folder where you want to save the output. After you've done that, click on "OK." That's all you need to do. Now you can go to the folder you selected. There you'll find a file named "output.htm" that you can open with MicroSoft Word and copy and paste into another word document. That's a handy thing to do if you need to provide a table for a technical report. Of course, there are more things you can do to export output and you can explore them if you like. But this will do the trick.
If you don't
understand something in this Web note, please e-mail
Dr. Sitton.
Revised 092811 — http://www.uamont.edu/FacultyWeb/sitton/crz/mrea/spssdownload.html | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||