Professional Documents
Culture Documents
SPSS Statistics 17: Introduction To
SPSS Statistics 17: Introduction To
SPSS Statistics 17
System requirements for SPSS Statistics Base 17.0 for Windows®
Operating System
Microsoft® Windows XP (32‐bit versions) or Vista® (32‐bit or 64‐bit versions)
Hardware
Intel® or AMD x86 processor running at 1GHz or higher
Memory: 512MB RAM; 1GB recommended
Minimum free drive space: 450MB
CD‐ROM drive
Super VGA (800x600) or a higher‐resolution monitor
Software
Web browser: Internet Explorer 6 or above
‐ 1 ‐
TABLE OF CONTENTS
STARTING SPSS .................................................................................................................................... 3
DATA EDITOR ....................................................................................................................................... 4
DEFINE VARIABLES .......................................................................................................................................... 4
ACTIVITY 2: CREATE A SMALL DATA SET ............................................................................................................ 5
OPEN AN SPSS DATA FILE (PREVIOUSLY SAVED) .................................................................................................. 6
IMPORT AN EXCEL WORKSHEET ........................................................................................................................ 7
IMPORT ASCII TEXT ........................................................................................................................................ 8
SAVE YOUR DATA ........................................................................................................................................... 9
LABELLING VARIABLES ..................................................................................................................................... 9
MISSING DATA ............................................................................................................................................ 10
VALUE LABELS ............................................................................................................................................. 11
MERGING DATA FILES ........................................................................................................................ 12
ADDING MORE OBSERVATIONS FROM ANOTHER FILE ......................................................................................... 12
ADD NEW VARIABLES FROM ANOTHER FILE ...................................................................................................... 14
COMPUTE NEW VARIABLES ........................................................................................................................... 15
DESCRIPTIVE STATISTICS .................................................................................................................... 16
Analyze > Reports > Case Summaries .................................................................................................. 16
Analyze > Descriptive Statistics > Frequencies .................................................................................... 18
Analyze > Descriptive Statistics > Descriptives .................................................................................... 19
Analyze > Descriptive Statistics > Crosstabs ........................................................................................ 20
INFERENTIAL STATISTICS .................................................................................................................... 21
OUTPUT VIEWER ................................................................................................................................ 22
SPSS STATISTICS 17 MENUS................................................................................................................ 23
SPSS STATISTICS 17 TOOLBARS ........................................................................................................... 24
DATA EDITOR STANDARD TOOLBAR ................................................................................................................ 24
OUTPUT VIEWER STANDARD TOOLBAR ............................................................................................................ 24
2
STARTING SPSS
or to
You will now see the SPSS Statistics Data Editor screen:
Intro to SPSS Statistics 17 Page 3
DATA EDITOR
At this point, you can:
define variables and enter data into this window
open a previously saved SPSS data file
open an Excel spreadsheet to import data
import an ASCII text file to use as data
DEFINE VARIABLES
3. In the Type column, change the variable type by clicking on the … button.
4. Specify the number of characters or digits in this dialog or in the appropriate columns
when you return to the rows of variable information.
5. You can also create a label for this variable and change other default settings.
4
7. Repeat these steps for each variable you plan to enter.
ACTIVITY 2: CREATE A SMALL DATA SET
1. Create 4-6 variables of your choice. For example: lname, fname, age, salary.
2. Create at least one string variable
3. Create at least two numeric variables.
4. Switch back to Data View and enter a few rows of data.
5. Click on the Save button or choose File > Save from the menu. You will see:
Intro to SPSS Statistics 17 Page 5
8. You will see results of the saving summarized in the output window:
OPEN AN SPSS DATA FILE (PREVIOUSLY SAVED)
2. Change the location in the "Look in" box to the subdirectory where your file is.
and more information about the variables under the Variable View tab.
6
IMPORT AN EXCEL WORKSHEET
Ideally, the worksheet should have the variable names in the first row. You may want to
insert or edit them in the Excel file ahead of time.
6. Click on OK. You will see the data appear in the Data Editor window.
7. You may need to modify some of the variable definitions (Variable View)
Intro to SPSS Statistics 17 Page 7
IMPORT ASCII TEXT
2. Find the file and open it as if it were any other type of file.
4. Step 2:
5. For Delimited data, specify the delimiter: comma, space, tab, semicolon, etc.
6. Change the variable names, especially if your text file did not include a row of names.
Change the data format type for each variable as necessary.
7. Click on each variable column in the Data Preview to switch from one to the other.
8. The last question will allow you to save all of these decisions in a file for future use.
9. When you are done, click on the Finish button.
8
SAVE YOUR DATA
To save the current contents of the Data Editor window to an SPSS saved data file, go to
the File menu and select Save. The first time you save an untitled file, the command
works like a Save As command and you will be asked to supply a location and name for
the file. Click on the Save button after you have specified all needed information. By
default, SPSS will add a .sav extension on the file.
LABELLING VARIABLES
The easiest way to add a label for a variable is to switch to Variable View.
In the Label column next to each field, enter the text string you desire:
You will see these labels used in the output instead of the variable names when you run
procedures such as Analyze > Descriptive Statistics > Descriptives:
You will see the label listed as an attribute when you examine the codebook
Analyze > Reports > Codebook:
Intro to SPSS Statistics 17 Page 9
MISSING DATA
Sometimes data is not available for a variety of reasons: the measuring instrument failed,
a person neglected or refused to answer a question, the response is not applicable based
on the response to a previous question (e.g. 1. are you employed? y/n … 2. does your job
include benefits? y/n). Sometimes a researcher wants to account for this data differently
and be able to distinguish or account for the various reasons for the missing item.
If you do not need to account for the reason, the easiest thing to do is to leave that cell
blank in the data entry sheet or in Excel. However, if you do know the various reasons
why a number is missing, you might want to consider entering a code for it. Certain
procedures will treat all missing numbers the same; you can look at the frequencies to
tabulate the reasons. If you need to, you can recode missing values to the system missing
value or to an interpolated value.
For numeric data, you can enter 3 discrete values or a range plus 1 optional discrete value.
Blank data will still be set to the System Missing value (will appear as a period in the
datasheet.
For string data, you are restricted to a maximum of 3 discrete values – the "range" option
will be greyed out and unavailable.
10
VALUE LABELS
Sometimes you want to associate a text string with your numeric data – for instance, you
may have entered 1 for "blue" and 2 for "red".
The easiest way to create or modify value labels is under the Variable View tab:
Click in the appropriate cell under the Value column. Click on the … button.
You can return here in the future and change value labels or remove them.
Intro to SPSS Statistics 17 Page 11
MERGING DATA FILES
ADDING MORE OBSERVATIONS FROM ANOTHER FILE
If you wish to combine two data files with the same variables but
different cases, then choose Data > Merge Files > Add Cases
Choose to merge two currently open datasets or browse to find a saved external data file:
Click on Continue
If a variable in the first active file is not part of the second file, click on the purple arrow
button pointing to the right to include it in the new merged data set.
You can choose to create a new variable that will tell you which original data file the cases
came from. The first file that was open will have 0's for the values; the second file selected
will have 1's.
After all variable selections and pairs have been made, click on OK.
Your active file now includes data from the other file. If you wish the original active file to
remain the same as before you started, then perform a File > Save As command to save
this current active dataset with a new name.
Intro to SPSS Statistics 17 Page 13
ADD NEW VARIABLES FROM ANOTHER FILE
If the two data files have the same cases but include different variables,
choose Data > Merge Files > Add Variables
Click on Browse to select the file (or select the open dataset).
Click on the Continue button.
Match Merge:
1. Check the box to match cases.
2. Decide if you want unmatched cases from both files.
3. Click on the variable name from the list of Excluded Variables
4. Click on the purple arrow pointing in to the Key Variables box
5. You can choose to create a variable that tells which file the cases came from if you
selected both files provide cases:
14
COMPUTE NEW VARIABLES
Intro to SPSS Statistics 17 Page 15
DESCRIPTIVE STATISTICS
Select a variable from the list on the left and click on the purple arrow button to move its
name to the right (or double click on the variable name). SPSS is going to summarize
those variables listed in the variables box on the right. Repeat for additional variables.
You can choose to not display the actual cases or you can limit how many cases are
displayed.
You can select one or more grouping variables.
Click on the Statistics button to request additional information to be displayed. Select a
desired statistic from the list on the left and click on the purple arrow (or double click)
16
Click on the Options button to control the appearance of the output.
Intro to SPSS Statistics 17 Page 17
ANALYZE > DESCRIPTIVE STATISTICS > FREQUENCIES
Use this for categorical data when you want 1-way frequencies and percentages.
Select a variable from the list on the left and click on the arrow button to move its name to
the right. SPSS is going to summarize those variables listed in the box on the right.
Repeat for additional variables.
Click on the Statistics, Charts, and/or Format buttons to request additional results or to
control the output appearance.
Use this when you have continuous variables. You select variables by clicking on their
names on the left and then clicking on the arrow button in the middle.
If you want something other than the default results, click on the Options button.
Intro to SPSS Statistics 17 Page 19
Click on OK to run the descriptives report.
Descriptives Results look something like:
Click on the Statistics button if you want Chi Squares or other statistics computed.
Click on the Cells button if you want to display percentages, expected cell counts, or other
information in addition to frequency counts.
Click on OK when you are ready to generate your results.
20
INFERENTIAL STATISTICS
Independent-Samples T Test
Use this test when you have 2 independent samples and want to compare the means. Do
not use this test when you have a pre-test / post-test situation.
Specify one or more dependent test variables for the top right box.
Specify one grouping variable. Ideally it should just have 2 values (you inflate your error
rate if you keep repeating this test for pairs of groups B use 1-way ANOVA if you have
several groups).
Click on the Define Groups button and specify the valid values for this grouping variable.
Intro to SPSS Statistics 17 Page 21
OUTPUT VIEWER
When you run procedures from the Analyze or Graphs menu, you will automatically be
taken to the SPSS Output Viewer. In the left frame, you will see a list of various
procedures with their subordinate objects. More recent results appear at the bottom. You
can use this left frame to navigate to previous results: click on the object name on the left
and it will appear in the frame on the right, with a thin black indicator box and a red arrow.
To change text on the right, double click on on the text box and type.
22
SPSS STATISTICS 17 MENUS
Intro to SPSS Statistics 17 Page 23
SPSS STATISTICS 17 TOOLBARS
DATA EDITOR STANDARD TOOLBAR
OUTPUT VIEWER STANDARD TOOLBAR
You can hide or view toolbars or choose to display larger buttons: View > Toolbars > Customize
The View menu also allows you to select a different fontwhether or not to display grid lines whether or not to display value labels, and whether or
not to display the status bar.
24
Intro to SPSS Statistics 17 Page 25