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 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 with Python II – Installing and Testing

We think SPSS with Python is great! However, you need to have the SPSS Python Essentials properly installed in order to use it. This tutorial gives a quick overview of installing and then testing them for different SPSS versions. SPSS Python Essentials The basic components you need for running Python in SPSS are SPSS; Python; the SPSS Python plugin. […]

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

Escape Sequence (General Concept)

Introduction An escape sequence is a combination of characters that has a special meaning. Escape Sequences in General Some characters imply a special function rather than their “normal” meaning. For example, ‘ often implies the start or the end of a string. But what if you actually mean ‘ rather than a string? In that case you can escape its default meaning by prefixing […]

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 Repeated Measures ANOVA Tutorial

What is Repeated Measures ANOVA? Repeated Measures ANOVA Assumptions Quick Data Check Running Repeated Measures ANOVA in SPSS Interpreting the Output Reporting Repeated Measures ANOVA 1. What is Repeated Measures ANOVA? SPSS repeated measures ANOVA tests if the means of 3 or more metric variables are all equal in some population. If this is true and we inspect a sample from our […]

Repeated Measures ANOVA – Simple Introduction

Null Hypothesis Assumptions Example Repeated Measures ANOVA – Basic Formulas Post Hoc Tests Null Hypothesis The null hypothesis for a repeated measures ANOVA is that3(+) metric variables have identical means in some population. The variables are measured on the same subjects so we’re looking for within-subjects effects(differences among means). This basic idea is also referred to as dependent, […]

SPSS Friedman Test – Simple Example

For testing if 3 or more variables have identical population means, our first option is a repeated measures ANOVA. This requires our data to meet some assumptions -like normally distributed variables. If such assumptions aren’t met, then our second option is the Friedman test: a nonparametric alternative for a repeated-measures ANOVA. Strictly, the Friedman test can […]

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 Wilcoxon Signed-Ranks Test – Simple Example

For comparing two metric variables measured on one group of cases, our first choice is the paired-samples t-test. This requires the difference scores to be normally distributed in our population. If this assumption isn’t met, we can use Wilcoxon S-R test instead. It can also be used on ordinal variables -although ties may be a real issue for Likert items. […]

SPSS McNemar Test

SPSS McNemar test is a procedure for testing if the proportions of two dichotomous variables are equal in some population. The two variables have been measured on the same cases. SPSS McNemar Test Example A marketeer wants to know whether two products are equally appealing. He asks 20 participants to try out both products and […]

SPSS One-Way ANOVA with Post Hoc Tests Tutorial

A hospital wants to know how a homeopathic medicine for depression performs in comparison to alternatives. They administered 4 treatments to 100 patients for 2 weeks and then measured their depression levels. The data, part of which are shown above, are in depression.sav. Data Inspection – Split Histogram Before running any statistical tests, let’s first just […]

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