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 […]

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 CORRELATIONS Command

Summary SPSS CORRELATIONS generates tables with Pearson correlations and their underlying N’s and p-values.* This tutorial quickly walks through its main options, using freelancers.sav for demonstrational purposes. User Missing Values Before running any correlations, we’ll first specify all values of one million dollars or more as user missing values for income_2010 through income_2014.* We’ll do so by running the following line […]

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 […]

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 […]

SPSS Multiple Regression Analysis Tutorial

Running a basic multiple regression analysis in SPSS is simple. For a thorough analysis, however, we want to make sure we satisfy the main assumptions, which are linearity: each predictor has a linear relation with our outcome variable; normality: the prediction errors are normally distributed in the population; homoscedasticity: the variance of the errors is constant in the population. […]

SPSS Regression

SPSS Regression Basics Simple Linear Regression – Quick Introduction SPSS Multiple Regression Analysis – Tutorial Linear Regression in SPSS – A Simple Example Read SPSS Stepwise Regression Stepwise Regression in SPSS – Data Preparation Read Stepwise Regression in SPSS – Example Stepwise Regression in SPSS – Example 2 Regression – Dummy Variables Creating Dummy Variables […]

SPSS with Python I – What is It?

Python is among the most important programming languages today and can be used in SPSS. Doing so may truly decimate the time and effort you need to get things done. This tutorial briefly explains what Python is, how it relates to SPSS and why you might want to start using it. What is Python? Python is among the most important […]

SPSS – Set Variable Labels with Syntax

Managing variable and value labels without syntax is way more work than necessary. This tutorial explains how to do this more efficiently. Changing Variable Labels in SPSS As with other parts of the dictionary, there’s no “Paste” option for modifying variable labels. Be aware that manual modifications – apart from being time consuming – are not […]

SPSS RANK Command

Summary SPSS RANK can be used to create a variable holding the rank numbers of the values of some other variable. RANK is also used for discretizing continuous variables into ntile groups. This tutorial walks you through the main options along with some real world examples. Result of first RANK syntax example 1. SPSS Rank Basic Example Running the syntax below first creates […]

SPSS MATCH FILES Command

MATCH FILES is an SPSS command mostly used for merging data holding similar cases but different variables. For different cases but similar variables, use ADD FILES. MATCH FILES is also the way to go for a table lookup similar to VLOOKUP in Excel. Merging two datasets by id, which is a unique case identifier. SPSS Match Files – Basic Use The […]

SPSS – Reorder Variables from Syntax

While working in SPSS, it’s pretty common to reorder your variables. This tutorial shows how to do so the right way. We encourage you try the examples for yourself by downloading and opening hotel_evaluation.sav, a screenshot of which is shown below. SPSS Reorder Variables Example 1 Right, the most common way for reordering variables in SPSS […]

SPSS Repeated Measures ANOVA – Example 2

A car brand had 18 respondents rate 3 different car ads on attractiveness. The resulting data -part of which are shown above- are in adratings.sav. Some background variables were measured as well, including the respondent’s gender. The question we’ll try to answer is:are the 3 ads rated equally attractive and does gender play any role here?Since […]

SPSS Cochran Q Test

SPSS Cochran Q test is a procedure for testing if the proportions of 3 or more dichotomous variables are equal in some population. These outcome variables have been measured on the same people or other statistical units. SPSS Cochran Q Test Example The principal of some university wants to know whether three examns are equally difficult. Fifteen […]

SPSS Paired Samples T Test

SPSS paired samples t-test is a procedure for testing whether the means of two metric variables are equal in some population. Both variables have been measured on the same cases. Although “paired samples” suggests that multiple samples are involved, there’s really only one sample and two variables. The screenshot below illustrates the basic idea. SPSS […]

SPSS COMPUTE – Simple Tutorial

SPSS COMPUTE command sets the data values for (possibly new) numeric variables and string variables. These values are usually a function (such as MEAN, SUM or something more advanced) of other variables. This tutorial walks you through doing just that. We’ll use hospital.sav,a screenshot of which is shown below. Before proceeding, we’ll first set 6 as a user missing value for the last 5 […]

SPSS Sign Test for Two Medians – Simple Example

The sign test for two medians evaluates if 2 variables measured on 1 group of cases are likely to have equal population medians.* It can be used on either metric variables or ordinal variables. For comparing means rather than medians, the paired samples t-test and Wilcoxon signed-ranks test are better options. Adratings Data We’ll use adratings.sav throughout this tutorial. It holds data on 18 respondents […]

SPSS One-Way ANOVA Tutorial

SPSS One-Way ANOVA tests if the means on a metric variable for three or more populations are all equal. * The populations are identified in the sample by a categorical variable. For a very simple explanation of the basic idea, see ANOVA – What Is It?. SPSS One-Way ANOVA Example A farmer wants to know if the weight of parsley plants is […]