SPSS Syntax Beginners Tutorial

Most of this tutorial aims at getting you started fast and smoothly with SPSS syntax. But before doing so, let’s briefly point out some major reasons why working from syntax is the single best practice for SPSS.* SPSS Syntax – Some Advantages Your syntax file tells you exactly what you’ve done so far with your data. It holds all details of […]

SPSS Data Preparation 6 – Inspect Cases

9. Missing Values per Case (Overview and data file are are found here) Missing values complicate some analyses or may sometimes indicate that respondents didn’t fill out the questionnaire very seriously. In any case, it’s a good idea to at least check how missing values are distributed over respondents and we often do so for sections […]

SPSS Data Preparation 5 – Inspect Variables

6. Inconvenient Distributions (Overview and data file are are found here) Let’s first state this clearly: we don’t exclude variables simply because their distributions are not to our liking. What we mean by “inconvenient distributions” are variables that don’t really provide us with useful information. This point is perhaps best explained by an example. Let’s inspect q4. […]

SPSS Data Preparation 4 – Specify Missing Values

5. Presence of User Missing Values (Overview and data file are are found here) User missing values are values that we want to exclude from analysis. We do so by specifying (ranges of) values as “missing” in SPSS. For ordinal variables, we typically exclude answers such as “Don’t know” or “Not applicable”. For metric variables, we exclude values that are not […]

SPSS Data Preparation 3 – Inspect Variable Types

Summary (Overview and data file are are found here) SPSS has two variable types: string variables and numeric variables. String variables have “String” under Type in Variable View. All other variables are numeric. The screenshot below illustrates this point for hotel_evaluation.sav. 3. Undesirable Variable Types A problem with some data files is that they contain string variables that should have been numeric. A […]

SPSS Data Preparation 2 – Initial Data Checks

1. SPSS Case Count and Variable Count (Overview and data file are are found here) The very first thing we want to know about basically any data file, are its dimensions: how many cases and how many variables does it contain? For a quick case count, select any cell in data view and press the CTRL +  shortkey. Alternatively, just […]

Data Preparation

Before you start analyzing real-world data, make sure you have a basic idea what your data look like. How many cases and variables do you have? Do their frequency distributions look plausible? Do you have any string variables and do you need to set any missing values? A quick data inspection takes little time and effort and may save you […]

How to Mean Center Predictors in SPSS?

For testing moderation effects in multiple regression, we start off with mean centering our predictors:mean centering a variable is subtracting its mean from each individual score.After doing so, a variable will have a mean of exactly zero but is not affected otherwise: its standard deviation, skewness, distributional shape and everything else all stays the same. After mean […]

SPSS Custom Dialogs – Quick Introduction

SPSS custom dialogs are extensions of SPSS’ point-click menu, officially known as the GUI (“graphical user interface”). SPSS Custom Dialogs in Menu Custom dialogs are kept in files with the .spd file extension. After installing a custom dialog file, it will appear in the menu just like an SPSS’ built-in command. The difference, however, is […]

SPSS Create Dummy Variables Tool

Summary Creating dummy variables for several categorical variables by basic syntax is usually not hard. However, applying proper variable labels to the newly created dummy variables requires quite a bit of effort. The tool presented in this tutorial will take care of this -and some other issues- more easily. SPSS Dummy Variables Tool SPSS Create Dummy Variables Tool Instructions […]

Creating Dummy Variables in SPSS

Dummy coding a variable means representing each of its values by a separate dichotomous variable. These so-called dummy variables contain only ones and zeroes (and sometimes missing values). The figure below shows how the variable “pet” from favorite_pets.sav has been dummy coded as pet_d1 through pet_d4. Dummy Variables in SPSS Note that, for example, pet_d2 represents the value 2 on […]

Stepwise Regression in SPSS – Example

A magazine wants to improve their customer satisfaction. They surveyed some readers on their overall satisfaction as well as satisfaction with some quality aspects. Their basic question is“which aspects have most impact on customer satisfaction? ”We’ll try to answer this question with regression analysis. Overall satisfaction is our dependent variable (or criterion) and the quality […]

Stepwise Regression in SPSS – Data Preparation

A magazine publisher surveyed readers on their overall satisfaction and a number of quality aspects. Their data can be downloaded from magazine.sav. Now, when working with real world data, the first thing you want to do are some basic data checks. This tutorial walks you through. The actual regression analysis on the prepared data is covered in the next […]

Creating Histograms in SPSS

Among the very best SPSS practices is running histograms over your metric variables. Doing so is a super fast way to detect problems such as extreme values and gain a lot of insight into your data. This tutorial quickly walks you through using bank_clean.sav, part of which is shown below. Option 1: FREQUENCIES without Frequency Tables If you’re running […]

SPSS Recode Values with Value Labels

Introduction In SPSS we sometimes find ordinal variables where lower values indicate more positive attitudes or larger quantities. An example is shown in the screenshot below. Now, the coding scheme shown above is not really ‘wrong’ in any way. However, we usually prefer higher values indicating more positive attitudes or larger quantities because we find this more […]

SPSS Data Preparation 1 – Overview Main Steps

When we start analyzing a data file, we first inspect our data for a number of common problems. For instance, we want to be sure that variables have the right formats, don’t contain any weird values and have plausible distributions. The table below proposes which steps should be taken and in which order. For getting […]

Linear Regression in SPSS – A Simple Example

A company wants to know how job performance relates to IQ, motivation and social support. They collect data on 60 employees, resulting in job_performance.sav. Part of these data are shown below. Quick Data Check We usually start our analysis with a solid data inspection. Since that’s already been done for the data at hand, we’ll limit it […]

SPSS Stepwise Regression – Example 2

A large bank wants to gain insight into their employees’ job satisfaction. They carried out a survey, the results of which are in bank_clean.sav. The survey included some statements regarding job satisfaction, some of which are shown below. Research Question The main research question for today iswhich factors contribute (most) to overall job satisfaction?as measured by overall (“I’m […]

SPSS – Correlations in APA Format

When running correlations in SPSS, we get the significance levels as well. In some cases, we don’t want that: if our data hold an entire population, such p-values are actually nonsensical. For some stupid reason, we can’t get correlations without significance levels from the correlations dialog. However, this tutorial shows 2 ways for getting them anyway. We’ll use adolescents.sav throughout. Correlation Table as Recommended […]

How to Draw a Regression Line in SPSS?

This tutorial shows how to draw a regression line in SPSS. We encourage you to follow along by downloading and opening job_performance.sav, part of which are shown below. Our data basically just hold job performance scores and IQ, motivation and social support which -supposedly- contribute to job performance. The meaning of our variables is seen under variable view, […]