SPSS Cheat Sheet
SPSS Cheat Sheet
This contains some of the most common SPSS procedures for basic data analysis.
Data Cleaning
Missing Data Counts
Analyse
>>Descriptive Statistics
>>Frequencies
- Select the variable(s)
- Click
Continue
and thenOK
Missing data counts will be at the top of the resulting output.
Edit Variable Name
Transform
>>Recode into Same Variables...
- Select the variable to transform and move it into the right column.
- Click
Old and New Values...
- Under
Old Value
, enter either a specific value you would like to replace or a set of values you would like to replace. - Under
New Value
, enter what the replacement value should be. - Click
Add
underNew Value
. - Click
Continue
and thenOK
.
Create a Variable
Transform
>>Compute Variable...
- Click
Type and Label...
to set the variable type, then clickContinue
. - Enter the value for the variable. If it is a string, include the value in quotes.
- Or just enter a formula for the variable based on the existing variables.
- Click“
OK
.
Delete a Variable
- Right-click on the column header
- Click
Clear
.
NOTE: This does not produce a syntax in the Output window. The syntax for deleting a variable is here, in case you are saving your syntax:
- DELETE VARIABLES [list of variables, separated by spaces].
Drop observations based on some condition (Keep observations meeting the opposite)
Data
>>Select Cases...
>> SelectIf condition is satisfied
>>If...
- Enter the condition based on which observations you would like to keep, then click
Continue
. - Select
Delete unselected cases
. - Click
OK
.
You can specify multiple conditions at the same time by separating them with AND
or OR.
Merging datasets
Data
>>Merge Files
>>Add Variables...
- Note that the datasets you are merging must already be saved as SPSS (.sav) format files. In addition, the variables you are matching on must have the same name across datasets.
- Select
An external SPSS statistics data file
, browse for your file, and select it. - Select
Match cases on key variables
, click on the matching variable, and add it toKey Variables
. - Click
OK
.
Appending datasets
Data
>>Merge Files
>>Add Cases...
- Note that the datasets you are merging must already be saved as SPSS (.sav) format files. In addition, the variables you are matching on must have the same name across datasets.
- Select
An external SPSS statistics data file
, browse for your file, and select it. - All variables already in both datasets will appear in
Variables in New Active Dataset
, and variables not in both datasets will be inUnpaired Variables
. Move all unpaired variables you want into the right column. - Click
OK
.
Descriptive Statistics
Central tendency: mean, median, and mode (for continuous variable)
Analyze
>>Descriptive Statistics
>>Frequencies
- Select the continuous variable(s)
- Uncheck
Display frequency tables
- Click
Statistics...
and check the desired central tendency measures - Click
Continue
and thenOK
Central tendency: mode and frequency table (for categorical variable)
Analyze
>>Descriptive Statistics
>>Frequencies
- Select the categorical variable(s)
- Check
Display frequency tables
- Click
Format
and selectDescending counts
- Click
Continue
and thenOK
The top item in the frequency table is the mode. Note that if multiple categorical variables are selected, a separate frequency table will be created for each variable.
Common Analyses
Correlations
T-Test
ANOVAs
Oneway ANOVA:
Analyze
>>Compare Means
>>One-Way ANOVA
- Enter IV in Factor box, Enter DV to Dependent List box, click
Options
>>Descriptive
to get means in output Click continue, click OK
Factorial Anova (2x2, 2x2x3, etc.):
Analyze
>>General Linear Model
>>Univariate
- Select DV for Dependent Variable blank and IVs for the Fixed Factors box, click
OK