Launch SPSS:
Look for an IBM SPSS shortcut or in the “Programs” (Windows) / “Applications” (Mac) menu.
If you have a personal license, double-click the SPSS icon to start.
Select “New Dataset” or “Open an Existing File”:
If you have existing data in SPSS format (.sav), click “Open another file” to load it.
Otherwise, choose “New Dataset” to enter data manually.
Familiarize Yourself with the Main Windows:
Data Editor: Divided into two tabs:
Data View: Displays the raw data in a spreadsheet format (rows = cases/participants; columns = variables).
Variable View: Lets you define and edit variable properties (name, label, type, missing values, measurement scale, etc.).
Output Viewer: Where SPSS displays results of your analyses (tables, charts, etc.).
Syntax Editor (optional but recommended for advanced users): You can write and save SPSS commands here for reproducible analyses.
Go to Variable View at the bottom of the Data Editor.
In the first row under “Name,” type the first variable name (e.g., Age
).
In “Type,” set the data type (Numeric, String, Date, etc.).
In “Label,” give a descriptive label (e.g., “Participant Age”).
In “Values,” define value labels for categorical variables (e.g., 1 = Male, 2 = Female).
In “Measure,” choose the level of measurement (Nominal, Ordinal, or Scale).
Repeat these steps for each variable you want in your dataset.
After defining variables, click the Data View tab:
Enter data row by row.
Each row represents a case/participant.
Each column corresponds to the variable you just defined.
File > Open > Data.
Select the file type you want to import (e.g., .sav
for SPSS files, .csv
, .xls
, or .xlsx
for Excel).
Browse to your file, click Open, and follow any prompts to specify formatting.
Review the data in Data View and adjust variable properties in Variable View if needed.
Even if you have already imported your dataset, it is crucial to ensure your variables have the correct definitions:
Name: Make sure each variable has a concise name (no spaces or special characters).
Type: Set numeric, string, date, etc.
Label: Provide a descriptive label for clarity (e.g., “Satisfaction Score”).
Values (for categorical variables): Assign numerical codes and labels (e.g., 1 = Yes, 0 = No).
Missing: Mark missing values (e.g., 999) if your dataset uses special codes for missing data.
Measure: Select the measurement level (Nominal, Ordinal, or Scale/Interval). SPSS uses this to suggest suitable statistical tests and charts.
Descriptive statistics provide a quick overview of your dataset.
Go to Analyze > Descriptive Statistics > Frequencies (for categorical variables)
Check “Display frequency tables” to see how many cases fall into each category.
Analyze > Descriptive Statistics > Descriptives or Analyze > Descriptive Statistics > Explore (for numeric variables)
Choose your variables from the list and move them into the “Variables” box.
Click OK to generate summaries (mean, standard deviation, etc.).
Check the Output Viewer for frequency tables or summary statistics. You can double-click any table to edit or copy/paste it into reports or spreadsheets.
Data Requirements:
One categorical independent variable (with two groups, e.g., “Gender”).
One continuous dependent variable (e.g., “Test Score”).
Go to Analyze > Compare Means > Independent-Samples T Test.
Move the continuous variable (Test Score) into the Test Variable(s) box.
Move the categorical variable (Gender) into the Grouping Variable box.
Click Define Groups and specify the numeric codes for each group (e.g., 1 = Male, 2 = Female).
Click OK.
In the Output Viewer, you’ll see tables that provide:
Group statistics (mean, SD by group).
Levene’s Test for Equality of Variances.
t-test results (t-value, degrees of freedom, p-value).
Analyze > Correlate > Bivariate: Pearson or Spearman correlation.
Analyze > Compare Means > Paired-Samples T Test: Comparing two related measurements.
Analyze > Compare Means > One-Way ANOVA: Comparing three or more independent groups.
Analyze > Regression > Linear: Running a linear regression analysis.
Visualizing your data is often the best way to explore relationships or present findings.
Go to Graphs > Chart Builder.
If prompted, click OK to define the measurement level.
In the Chart Builder window:
Select a chart type (bar, line, scatter, histogram, boxplot, etc.).
Drag and drop variables onto the axes or segments as indicated.
Adjust “Element Properties” (labels, titles, etc.) in the right panel.
Click OK to generate your chart in the Output Viewer.
Editing: Double-click the chart in the Output Viewer to open the Chart Editor, where you can refine labels, fonts, legends, and so forth.
While the point-and-click interface is user-friendly, syntax offers:
Reproducibility: You can re-run analyses or share the syntax with colleagues.
Automation: Run multiple analyses in one go.
Efficiency: Change variables or parameters quickly without redoing GUI steps.
Go to File > New > Syntax.
Write Commands: Each SPSS function has a corresponding syntax command.
Example for a frequency table on a variable Gender
:
FREQUENCIES VARIABLES=Gender /ORDER=ANALYSIS.
spss
FREQUENCIES VARIABLES=Gender /ORDER=ANALYSIS.
Run: Highlight the code, then click the green “play” button (triangle icon) or press Ctrl + R (Windows) or Cmd + R (Mac).
Output: Results appear in the Output Viewer as usual.
File > Save As (for the data file): Creates an .sav
file containing your data and variable definitions.
File > Save (in the Output Viewer): Saves the output in an .spv
file, which opens only in SPSS.
File > Export (from the Output Viewer):
Choose PDF, Word, Excel, or HTML to create shareable reports.
Select what sections of the output you want to export.
Copy/Paste: You can also copy/paste individual tables or charts from the Output Viewer into Word, PowerPoint, or other programs.
Check Variable Formats: If a test is greyed out or results look odd, confirm that variables are set to the correct “Type” (numeric for numeric data) and “Measure” (Scale, Ordinal, or Nominal).
Missing Values: Make sure you aren’t accidentally including placeholder codes (e.g., 999) in your analyses. Define them as missing in Variable View.
Check Output for Warnings: SPSS often gives notes if assumptions are violated (e.g., normality, homogeneity of variance).
Use Syntax: If you suspect an error with your analysis steps, try running them in Syntax to see if any commands are misspecified.
SPSS is a versatile tool for data analysis, especially for those who prefer a guided user interface. As you gain experience, you’ll discover more advanced options (like macros, advanced modeling, scripting). With this step-by-step walkthrough, you should be able to:
Set up or import your data
Define and label your variables
Run descriptive statistics and basic tests
Create charts and interpret results
Save/export data and output
Continue exploring the resources listed above to refine your skills and handle more complex analyses. Good luck with your SPSS journey!