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

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

How to Compute Means in SPSS?

This tutorial shows how to compute means over both variables and cases in a simple but solid way. We encourage you follow along by downloading and opening restaurant.sav, part of which is shown below. Quick Data Check Before computing anything whatsoever, we always need to know what’s in our data in the first place. Skipping this […]

SPSS Datetime Variables Basics

Introduction Working with SPSS datetime variables is not hard at all if you understand some basics. This tutorial walks you through just those. Those who’d like to follow along may download and open hospital.sav. SPSS Datetime Variables – What Are They? SPSS datetime variables are variables that hold the numbers of seconds between the year 1582 and […]

SPSS FREQUENCIES Command

SPSS FREQUENCIES command can be used for much more than frequency tables; it’s also the easiest way to obtain basic charts such as histograms and bar charts. On top of that, it provides us with percentiles and some other statistics. Plenty of reasons for taking a closer look at this ubiquitous SPSS command. We’ll use employees.sav throughout […]

SPSS FILTER – Quick & Simple Tutorial

SPSS FILTER temporarily excludes a selection of cases from all data analyses.For excluding cases from data editing, use DO IF or IF instead. SPSS Filtering Basics Example 1 – Exclude Cases with Many Missing Values Example 2 – Filter on 2 Variables Example 3 – Filter without Filter Variable Tip – Commands with Built-In Filters Warning – Data Editing with […]

SPSS WEIGHT Command

By default, every case in your data counts as a single case. However, you can have each case count as more or less than one case as well. This is called weighting. For instance, the first case in your data may count as 2 cases and the second one as .5 cases. These numbers, the case weights, […]

Overview SPSS Nonparametric Tests

SPSS nonparametric tests are mostly used when assumptions aren’t met for other tests such as ANOVA or t-tests.* Second, nonparametric tests are suitable for ordinal variables too. In rare cases they may have more statistical power than standard tests. Not sure which (nonparametric) test to use? You’ll quickly find the answer in Simple Overview Statistical Comparison Tests. Nonparametric Tests – One Sample SPSS Kolmogorov-Smirnov Test for […]

SPSS Date Variables Tutorial

SPSS date calculations are much easier than they may seem at first. The first key to success is understanding what SPSS date variables really are. Next, choose (and possibly combine) the right date functions. This tutorial will walk you through the main ones. We recommend you follow along by downloading and opening hospital.sav. SPSS Main Date Functions The table […]