SPSS For Beginners
SPSS For Beginners
SPSS For Beginners
Contents
1 Aims and Objectives.................................................................................................................................... 3
1.1 Learning outcomes (Aims and Objectives) .............................................................................................. 3
1.2 Some Basics ............................................................................................................................................. 3
1.2.8 Kinds of data...................................................................................................................................... 3
1.2.8.1 Interval data .................................................................................................................................... 3
1.2.8.2 Ordinal data .................................................................................................................................... 3
1.2.8.3 Nominal data .................................................................................................................................. 3
2 Getting Started with SPSS for Windows ..................................................................................................... 3
2.1 Assumptions ......................................................................................................................................... 4
2.2 Introduction .......................................................................................................................................... 4
2.3 Dialogue boxes ..................................................................................................................................... 6
2.4 Variable names and value labels........................................................................................................... 7
2.4.1 Variable names .................................................................................................................................. 7
2.4.2 Value labels ....................................................................................................................................... 7
3 Data entry using the keyboard ..................................................................................................................... 7
3.1 Editing data on the grid ........................................................................................................................ 7
4 Exercise 1 .................................................................................................................................................... 8
4.1 Exercise 1a Sample Questionnaire and Coding, Variable Labels, Value Labels and Data entry ...... 8
4.2 Exercise 1b Read an Excel Data file into SPSS ................................................................................. 9
5 Exercise 2 - How to conduct an Exploratory Data Analysis - Quantitative Variable .................................10
5.1 The Explore Procedure ........................................................................................................................10
5.2 The Descriptives Procedure .................................................................................................................10
5.3 The Frequencies Procedure .................................................................................................................11
6 Exercise 3 - How to conduct an Exploratory Data Analysis - Qualitative Variable ...................................11
6.1 The Frequencies Procedure .................................................................................................................12
6.2 The Crosstabs Procedure .....................................................................................................................12
2.1 Assumptions
This document assumes that you know the basics of using a computer such as:
1. How to start applications
2. How to use your mouse
3. How to move and close windows.
4. How to save and open a file.
2.2 Introduction
SPSS has two main windows: The Data Editor window and the Viewer window. The
Data Editor window is in turn divided into the Data View and the Variable View
windows.
The Data View window is simply a grid with rows and columns. The rows represent
subjects (cases or observations) and columns represent variables whose names should
appear at the top of the columns. In the grid, the intersection between a row and a
column is known as a cell. A cell will therefore contain the score of a particular subject
(or case) on one particular variable. This window displays the contents of data file. You
create new data files or modify existing ones in this window. This window opens
automatically when you start an SPSS session. See Figure 1 for a brief annotation of this
window.
Columns represent variables
Menu Bar
Tool bar
Active
Cell
Rows
(Represent cases
Or observations)
Cells
Status Bar
window, rows are variables and columns are variable attributes. You can make changes
to variable attributes in this window such as add, delete and modify attributes of
variables. There are eleven columns altogether namely: Name, Type, Width, Decimal,
Label, Value, Missing, Columns, Align, Measure and Role. See Fig. 2 for more
information. As you define variables in this window, they are displayed in the Data View
window. The number of rows in the Variable view window corresponds to the number of
columns in the Data view window.
Columns represent attributes of variables
Rows
represent
variables
Source variable
list. The variables
can be selected
containing the row number followed by delete. Similarly, to delete the values of an entire
column, click on the grey area containing the name of the column followed by delete.
4 Exercise 1
Now that the basics of SPSS for Windows have been covered, attempt the following
exercise. To do the exercise you must start SPSS for Windows if you have not already
done so.
4.1 Exercise 1a Sample Questionnaire and Coding, Variable Labels, Value Labels
and Data entry
In this exercise, you will learn how to code a questionnaire, label variable and value, and
enter data into SPSS Data Editor.
Sample Questionnaire
1. What is your gender? Please tick 1: Male Female
2. What is your date of birth?
3. What is the total number of years you completed in an educational establishment?
.
4. Which employment category do you belong to? Please select one:
Manager
Clerical
Custodial
5. What is your current salary? .
6. What was your beginning salary ..
Click the tap for Variable View window at the bottom left hand corner and code each
question using the information shown on the table below:
Coding of Questionnaire
Question Name
Type
Label
Value and
Measure
Label
1
gender
String
Respondents sex
m=male,
Nominal
f=Female
2
bdate
Date
Date of birth
Scale
3
educ
Numeric
Educational level
Scale
4
jobcat
Numeric
Employment
1=Clerical,
Nominal
category
2=Custodial,
3=Manager
5
salary
Dollar
Current salary
Scale
6
salbegin
Dollar
Beginning salary
Scale
Save the file, give it a suitable name and save it in a folder of your choice (if you like you
can save it under H:\). You have now successfully created and saved your first data set in
SPSS. Congratulations!
4.2 Exercise 1b Read an Excel Data file into SPSS
1. From the menu bar, select Analyze -> Descriptive Statistics -> Descriptives.... The
Descriptives dialogue box will appear on the screen.
2. Transfer the variable Current Salary [salary] into the Variable(s) box.
3. Select the Options pushbutton. The Descriptives: Options dialogue box will appear
on the screen. Notice that Mean, Std. deviation, Minimum and Maximum have
already been selected for you. These are the default statistics.
4. Also select these statistical measures: Variance, Range, Sum, and S.E mean. To
select an item click on the check box once. To deselect it click on it again once.
5. Select Continue to return to the Descriptives dialogue box.
6. Select OK to run the procedure.
Examine and attempt to interpret the output.
What are the main differences between the output from the Descriptives Procedure
compare to the output from the Explore Procedure?
5.3 The Frequencies Procedure
With the Frequencies procedure you can also generate summary statistical measures for a
given variable. Frequencies gives frequency distributions for all types of data (nominal,
ordinal and interval). This example concentrates on the quantitative variable Current
Salary [salary]. An example involving qualitative variables will be carried out in
Exercise 3. Follow these instructions:
1. From the menu bar, select Analyze -> Descriptive Statistics -> Frequencies.... The
Frequencies dialog box will appear on the screen. You my need to click on the Reset
button if this dialogue box has been used before.
2. Highlight the variable Current Salary [salary] and then click on the arrow pushbutton
to transfer it into the Variables(s) box.
3. Click on the Charts pushbutton to open the Frequencies: Charts dialogue box.
Click on the Histogram and click on With Normal Curve button in the Chart Type
group and then click on Continue.
4. Click on the Statistics pushbutton to open the Frequencies: Statistics dialogue box.
5. Select these statistics: Quartiles, Mean, Median, Mode, Sum and click on
Continue.
6. Click on Display frequency tables to deselect it. It is not appropriate to produce a
frequency table for interval (continuous) variable.
7. Click on OK to run the procedure.
Examine and interpret the output.
6 Exercise 3 - How to conduct an Exploratory Data Analysis - Qualitative Variable
The data file used in this example is stored \\campus\software\dept\spss. Follow these
instructions to open this file:
11
1.
2.
3.
4.
12
1. Recall the Crosstabs dialogue box via Analyze -> Descriptive Statistics ->
Crosstabs....
2. Click Cells Under Percentage select Row and click Continue
3. Click Statistics Select Chi-square and click Continue
4. Click OK to run the procedure.
Examine and interpret the output. Will you accept or reject the null hypothesis? What
will you conclude?
13