SPSS OUTPUT MODIFY – Batch Edit Output Items

Boldface Absolute Correlations > 0.5 Set Decimal Places for Output Tables Transpose One or Many Output Tables Delete Selection of Output Items Set Font Sizes and Styling for Output Tables Set Exact Sizes for Charts All examples require SPSS version 22 or higher. We’ll use bank_clean.sav -screenshot below- throughout this entire tutorial. OUTPUT MODIFY – What and Why? OUTPUT MODIFY […]

SPSS – What’s the Best Way to Reverse Code Variables?

In SPSS, we sometimes encounter variables that are negatively coded: lower values indicate higher agreement or more positive sentiments. Although this is not really “wrong” in any way, positive coding is more intuitive. Especially when reporting means over variables, most readers naturally expect higher means to indicate something better, not worse. So what’s the best way to reverse code variables? […]

SPSS Computes Wrong Week Numbers?

While working on data holding a record for each day, I wanted to create some graphs on week level. So I extracted the weeks with XDATE.WEEK but the week numbers returned by SPSS are nonsensical: every week starts on January 1 and most years end up with week 53 holding just 1 day. There’s different standards for week […]

SPSS – How to fix “Your license will expire in … days”?

I’m a pretty happy SPSS user but since a while, the software has been telling me that “Your license will expire in … days.” I had already extended my license with another year but -apparently- SPSS seemed to be oblivious to that. It took me some trial and error to troubleshoot the issue. Since I’m running this […]

SPSS – Open CSV Data File

Summary This tutorial walks you through opening a .csv data file in SPSS. We chose a .csv file as obtained from Google Analytics (GA). Since many readers may be unfamiliar with GA, the screenshot below gives a basic idea of what the data look like before we export them as a .csv file. The original […]

SPSS Datasets

This tutorial explains what SPSS datasets are. For a practical tutorial on working with datasets, see SPSS Datasets Tutorial 1 – Basics. Right, now an SPSS dataset is SPSS data that only exists in your computer’s working memory (RAM). Changes you make to it are discarded unless it’s saved as a data file. SPSS Data File and Dataset […]

SPSS Sampling Basics

Summary How to draw one or many samples from your data in SPSS? This tutorial demonstrates some simple ways for doing so. We’ll point out some tips, tricks and pitfalls along the way. Let’s get started and create some test data by running the syntax below. SPSS Syntax for Creating Test Data *Create test data with […]

Sampling in SPSS

Sampling is at the very core of statistical tests: drawing conclusions on research populations based on (small) samples from those populations. Basically all statistical tests quietly assume that the data you’re analyzing are a simple random sample from your population. This assumption being ignored is the very reason why political polls are often widely off and research findings can’t be […]

SPSS Output Tricks

SPSS output usually looks terrible. However, it doesn’t have to: you can manually style your tables and charts in the output window. The styles you apply such as colors, borders and fonts can be saved as SPSS chart templates and SPSS table templates. These can easily be reapplied to future output. A little known trick -but a real life saver […]

Recoding Variables in SPSS

Recoding both string and numeric variables in SPSS is usually done with RECODE. Doing so with syntax is way faster than with the menu, especially if you want to recode many variables at once. Note that you’ll often want to apply or adjust some value labels after recoding.Alternatively, string variables can be recoded into numeric variables with AUTORECODE. Doing […]

SPSS Scratch Variables

Definition Scratch variables are temporary helper variables that don’t show up in your data. A variable is a scratch variable if (and only if) its name starts with “#”. SPSS Scratch Variable – Introduction Say we have a data file holding phone numbers. Now we’d like to extract the area codes into a separate variable. […]

SPSS Looping Tutorials

SPSS DO REPEAT – Simple Tutorial & Examples SPSS LOOP – Quick Tutorial & Examples SPSS VECTOR – Quick Tutorial  

SPSS Datasets Tutorial 1 – Basics

Introduction SPSS dataset logic is not always logical. However, for working proficiently with datasets, just a handful of basics is sufficient. These are explained in this tutorial. This tutorial focuses on working with SPSS datasets. For a definition and some background on datasets, see SPSS Datasets. Working with SPSS Datasets It is recommended you follow along with the […]

SPSS Chi-Square Test Tutorials

SPSS Chi-Square Test Tutorials Chi-Square Independence Test – What and Why? SPSS Chi-Square Independence Test SPSS One Sample Chi-Square TesT

SPSS REPLACE Function

Definition SPSS REPLACE replaces a substring in a string by a different (possibly empty) substring. SPSS Replace – Removing Spaces URLs are created from “title” by using REPLACE. The syntax below demonstrates how to do this. We have a dataset holding the titles of web pages and we’d like to convert these to URLs. For one thing, we don’t like spaces in […]

SPSS INDEX Function

Summary The SPSS INDEX function returns the position of the first occurrence of a given expression within a string. If the expression does not occur in the string, it returns a zero. As a rule of thumb, always use it as CHAR.INDEX. The reason for this is explained SPSS Unicode Mode. Note that string values are case sensitive. SPSS Index […]

SPSS CD Command

A best practice in SPSS is to open and save all files with syntax. Like so, it can be easily seen which syntax was run on which data. One could use the syntax generated by Paste for this but there’s a much shorter and better option. Disadvantages of the Default Syntax Each time you open a data file from […]

Computing Variables in SPSS – Overview

Computing new variables -often as means or sums over other variables- is usually done with COMPUTE. If you want to do so for only some cases but not others, use IF instead. Some alternatives for creating new variables in SPSS are RECODE, AUTORECODE, AGGREGATE and RANK. Computing Variables Tutorials SPSS Missing Values Functions SPSS COMPUTE – Simple Tutorial

SPSS Clone Variables Tool

In SPSS, I don’t like to recode variables into new variables: the new variables don’t have any dictionary information such as variable/value labels or formats. Second, a recoded variable is appended to the end of the file but I rather have it in its original position. Both problems are avoided by recoding into the same variables. However, […]