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.
Variability: Standard deviation, variance, and range (for continuous variable)
Analyze
>>Descriptive Statistics
>>Descriptives
- Select the continuous variable(s)
- Click
Options
and select the desired measures of spread - Click
Continue
and thenOK
Common Analyses
Correlations
Pearson correlation:
Analyze
>>Correlate
>>Bivariate
- Select Pearson under Correlation Coefficients box, select the variables, click
OK
Spearman correlation coefficient:
Analyze
>>Correlate
>>Bivariate
- Select Spearman under Correlation Coefficient box, select the variables, click
OK
Linear Regression
Simple Linear Regression:
Analyze
>>Regression
>>Linear
- Enter IV and DV, Click
OK
Multiple Linear Regression:
Analyze
>>Regression
>>Linear
- Select IVs and DV, Click
OK
T-Test
Single-Sample T-test:
Analyze
>>Compare Means
>>One-Sample T-test
- Enter variables, click OK
Independent Samples T-test:
Analyze
>>Compare Means
>>Independent Samples T test
- Enter DV (Test Variable) and IV (Grouping variable), Define Groups, and enter the values of the two levels of the IV, click
continue
, clickOK
Paired Samples T-Test:
Analyze
>>Compare Means
>>Paired Samples T Test
- Click on two paired variables to move to Current Selections area, then click right arrowto move to Paired Variables Section, Click
OK
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
Repeated Measures ANOVA:
Analyze
>>General Linear Model
>>Repeated Measures
- Enter factors and number of levels >> click
Add
>> once all factors are entered clickdefine
- Define variables using the arrows, click
OK
Mixed-Design ANOVA:
- Follow same steps as repeated measures
- Add between-subjects factor to “Between-Subjects Factor” box, click
OK