Professional Documents
Culture Documents
1_Intro_to_SPSS
1_Intro_to_SPSS
Purpose
The purpose of this assignment is to introduce you to SPSS, the most commonly used statistical package in the social
sciences. You will create a new data file and calculate some basic probabilities. Next you will open an existing data file
and calculate the same basic probabilities.
Part I: In this part of the assignment, we’ll create a new SPSS data file and analyze the data.
Naming Variables
1. SPSS data files have two ways to view the data. Variable View is used for creating the file. Data View is used
for entering data. Click on the Variable View tab at the bottom left of the Untitled DataSet.
2. Click on the first empty cell in the Name column.
3. Type in “Status” for the variable. Variable names must be short. Press Enter.
4. Click on the first empty cell in the Label column. Type in “Relationship Status” for the Status variable. The
variable label can be much longer than the variable name. Press Enter.
5. Click on the cell directly below “Status”.
6. Type in “Sex” for the next variable.
7. Type in “Sex” as the label for the Sex variable.
8. For both variables, change the Type to String. To do this, first click in the cell that shows the Type for that
variable. Within the Type cell, click on the ellipsis (…). A new window will appear. Select String. Then click
OK. Repeat this process for the other variable.
1
Participant Status Sex
1 Married Male
2 Single Male
3 Divorced Female
4 Widowed Male
5 Married Female
6 Single Male
7 Single Female
8 Divorced Female
9 Married Female
10 Single Female
11 Single Male
12 Married Female
13 Married Female
14 Single Male
Initial Save
1. Switch back to the Untitled DataSet. To do this, click the Window menu, and select Untitled1 [DataSet0].
2. Click on the File menu at the top left of the window.
3. Click on Save As from the drop down menu.
4. From the Look In menu, open a place where you can save your file (such as a flash drive or a cloud drive).
5. Type in what you would like to call your file next to File Name. Sometimes, SPSS will suggest a file name, such
as “Untitled1 [DataSet0]”. Change this to something that will be easier to recognize, like “Psy 210 Sex and Status
Data”.
6. Click Save.
7. An output window may appear, telling you that the file has been compressed. If so, you can switch back to the
Data window by clicking Window, Data Editor.
Subsequent Saves
1. To save your data, you must first activate the data editor. To do this, click somewhere inside your data editor.
Alternatively, click on the Window menu and select the IBM SPSS Statistics Data Editor.
2. Click on the File menu at the top left of the window.
3. Click Save on the drop down menu.
4. If you want to save the file under a different name, use Save As.
5. Frequently save your SPSS files.
2
6. When you are finished typing, click somewhere else in the output window.
7. Now add a second title, below the first one. Type the title “Sex and Relationship Status”.
8. Sometimes your title will end up in the wrong part of your output. To fix this, move your mouse over to the
outline window on the left. Then drag the title to where you want it to be. You CANNOT drag stuff around in
the main window: You have to use the outline window. Any time something feels like it is out of order, use the
outline window to move it to its proper place.
9. Keep this Output file open, so that new output is added to the bottom of this file.
3
Computer crashes
When a computer crashes, the program you are using may close, or the entire computer may stop responding. When
this happens, it is often sufficient to turn the computer off, and then start it up again: use the power button to make sure
the computer is completely shut down. You may have to hold the button down for several seconds before the computer
turns off.
When you are working in a computer lab, turning the computer off and on again might not be enough to fix the
problem. If not, I recommend switching computers. Furthermore, sometimes there is a problem with the entire lab
(because all the computers in a lab are networked). If switching computers doesn't work, I recommend you move to
another computer lab.
Computers will crash. So be prepared by saving your files after each change you make.
Deleting Output
If you made any mistakes when you were working, you might need to remove a portion of your output. For example, if
you do the same analysis twice, you should delete the extra analysis. To delete a portion of your output:
1. Click once on the heading, table, or graph you want to delete.
2. Press the Delete key on your keyboard.
Part II: In this part of the assignment, we’ll work with an existing SPSS data file.
Getting the data file from the Open Science Framework website
1. Using a web browser other than Internet Explorer (e.g., Mozilla Firefox, Google Chrome, or Safari), go to the
SPSS Assignments for Introductory Statistics project page on the Open Science Framework website at
https://osf.io/5qy2p/
2. Click the Data Files component. Then click the Questionnaire Data component. Locate the Questionnaire
Data.sav data file. You may have to click the + symbol next to Questionnaire Data or next to OSF Storage in
order to see it.
3. Click on Questionnaire Data.sav. This will allow you to preview the file.
4. To download the data file, click the Download button in the upper right part of the screen.
5. A Save As window may appear. If so, select the appropriate drive. Check that the file name is specified in the File
name box. Then click Save.
6. The file will be downloaded. Once the download is complete, click on the file to open it.
Opening a File
If you have already downloaded the data file and you just need to open it, here’s what you do:
1. In SPSS, click on the File menu at the top left of the window.
2. Click Open on the drop down menu.
3. Click Data from the side menu.
4. Select the appropriate drive from the Look in menu at the top of the screen.
5. Select the appropriate folder from the list of folders in the middle of the screen.
6. Once you are in the correct folder, double-click on the file name, to select and open it. Alternatively, single click
on the file name to select it, and then click Open to open it.
Calculating Probabilities
1. Add a title to this section, saying "Student Employment" below the P(Married | Male) you previously inserted
below the Crosstabs table.
2. Calculate the simple probabilities, joint probabilities, and conditional probabilities for the following two
questions:
5
• Are you a full-time or part-time student?
• Are you employed?
The results of these analyses will appear at the bottom of your Output file, after your analyses for Part I. Make
sure you are using the SAME Output file for your entire assignment.
3. To correctly calculate the conditional probability, move Are you a full-time or part-time student? into the
Row(s) box and Are you employed? into the Column(s) box of the crosstabs menu.
4. Round the Valid Percent, % of Total, and % within Are you employed? values to 2 decimal places.
5. Calculate the following probabilities and insert your answers into your output using a new textbox:
a. The probability that a participant said they were not employed.
b. The probability that a participant said they were a full-time student.
c. The joint probability that a participant said they were a full-time student who also worked full-time.
d. The conditional probability that a participant is a full-time student given they are employed part-time.
6. This textbox should appear directly AFTER the Crosstabs table you just created. Move the textbox if necessary.
7. Save your Output file.