SPSS ANY Function

Definition SPSS’ ANY is used to compare one value to a set of other values. SPSS Any – Basics ANY(a,b,c[,d…]) checks whether a is equal to any of the b, c[,d…]. Note that the first value is compared to the second through the last values. Each of these can either be a constant (“6”) or a variable (“v1”) over respondents. SPSS Any – Examples Suppose […]

SPSS OMS Tutorial – Creating Data from Output

SPSS OMS (short for Output Management System) can convert your output to SPSS datasets. As we’ll demonstrate in a minute, this can save you huge amounts of time, effort and frustration. We recommend you follow along by downloading and opening course_evaluation.sav, part of which is shown below. Today’s Challenge Some client wants to see charts holding correlations of […]

SPSS – Opening Data with Syntax

There’s several ways to open SPSS data files. The right way, however, is by syntax. The way we typically do so in practice may differ somewhat from what you’re used to. But give it a shot. It keeps things nicely organized and this eventually saves time and effort. We’ll use employees.sav throughout. Creating a Project Folder […]

SPSS – Combining Data with Syntax and Output

SPSS Syntax, Data and Output The previous tutorials explored SPSS’ three main windows. These are SPSS Data Editor window ; SPSS Syntax Editor window ; SPSS output viewer window . Now that we have a basic understanding of what they’re for, let’s take a look at the big picture: the figure below proposes a typical flowchart for proceeding through a research […]

Five Reasons for Not Relying on the Journal File

Summary Some SPSS users argue that it’s not really necessary to work from syntax. If something goes wrong or a client doesn’t believe your results, you can always recover what you did from your journal file. However, the journal file is no reasonable substitute for syntax. This tutorial explains why. 1. Essential Modifications May be Missing Manual […]

SPSS Syntax Tutorials

You can use SPSS without using any syntax. However, this often results in users having to do their entire data analysis all over again at some point. Just don’t do it. The good news is that routinely using Paste instead of Ok gets you a long way. Do keep in mind that the syntax pasted by SPSS is usually unnecessarily long and complex. If you want to […]

SPSS VARSTOCASES With Labels Tool

Running VARSTOCASES is often necessary for generating nice charts in SPSS. One of the many examples is a stacked bar chart for comparing multiple variables. Sadly, we lose our variable labels when running VARSTOCASES and we really do need those. The solution is a simple tool that generates our VARSTOCASES for us and applies the variable labels of the input variables as value […]

SPSS INSERT Command

Definition SPSS Insert is a command for running syntax files from within another syntax file. This may help keeping your syntax organized. SPSS Insert Command – Why Use It? Executing all of your commands from syntax may be the single best practice for working with SPSS. One of the reasons is that you can correct steps early […]

SPSS VARSTOCASES – What and Why?

SPSS VARSTOCASES is short for “variables to cases”. It restructures data by stacking variables on top of each other as illustrated by the figure above. You can try this simple example for yourself by downloading and opening sav_data018 and running the syntax below on it. SPSS VARSTOCASES Example 1 *Very basic VARSTOCASES example. varstocases /make v from […]

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

Command Syntax Reference

Introduction SPSS ships with a manual called “Command Syntax Reference” (or CSR). Whenever you don’t know or understand something, this should usually be the first place to look. SPSS Command Syntax Reference SPSS comes with a syntax reference manual explaining all existing commands. This book (in .pdf format) is called the “Command Syntax Reference” and is mostly […]

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 – 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 MEANS – Statistics by Category

Summary SPSS MEANS produces tables containing means and/or other statistics for different groups of cases. These groups are defined by one or more categorical variables. If assumptions are met, MEANS can be followed up by an ANOVA. This tutorial walks through its main options, pointing out some tips and tricks. You may follow along by downloading and opening freelancers.sav. […]

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 Syntax – Six Reasons you Should Use it

Most of us start working with SPSS from its point-click menu. Doing so without pasting and saving all syntax may seem obvious at first but often turns out to be a pitfall. Using SPSS syntax may seem a bit difficult at first but often turns out to save tons of time and effort in the end. This tutorial explains […]

SPSS SPLIT FILE – A Quick Tutorial

SPLIT FILE is a command for having separate output for subsets of cases. It does not literally split your file into smaller files. Subsets are defined by the values on one or more split variables. After running SPLIT FILE, output is reported for each split group separately until you run SPLIT FILE OFF.Example of output […]

Overview All SPSS Commands

The table below lists all SPSS commands and the additional licenses -if any- you need for using them. This overview is based on SPSS version 22 but we hope to soon update it for version 24. Consult the notes section for some tips on using the table or downloading it as an SPSS (.sav) data file. Overview NAME TYPE OPTION […]

SPSS Syntax Introduction

SPSS” Syntax Editor window is the second of SPSS’ three main windows. As we’ll see in a minute, this is where we run commands for opening files, editing data, generating results and, finally, saving files. The Syntax Editor is recognized by an orange icon  in its left top corner. SPSS Syntax – First Encounter We recommend […]

SPSS Data Editor Window

SPSS Data Editor window is SPSS’ main window. This is the only window that’s always open whenever we run SPSS. It’s recognized by a red icon  in its left top corner. The Data Editor has two tabs in the left bottom corner: we can click Data View for inspecting our data values. Alternatively, Variable View shows information regarding the meaning […]