SPSS TableLooks – Quick Introduction

SPSS TableLooks are files that contain styling -colors, fonts, borders and more- for SPSS output tables. What can I (not) do with TableLooks? Applying TableLooks Creating TableLooks Developing TableLooks Issues with TableLooks Output Table Styled by TableLook Example Practice Data File This tutorial uses bank_clean.sav throughout. Part of its data view is shown below. Feel free to download these […]

SPSS Output – Basics, Tips & Tricks

SPSS Output Tables SPSS Output Charts SPSS Output to WORD SPSS Output to Excel SPSS Output Tricks Exporting SPSS output is usually easier and faster than copy-pasting SPSS Output Introduction In SPSS, we usually work from 3 windows. These are the data editor window ; the syntax editor window ; the output viewer window . Our previous tutorials discussed the data […]

SPSS Macros

Definition An SPSS macro is a function defined by the user in order to automate some task(s). SPSS Macro Syntax As discussed earlier, Python uses program blocks that start with BEGIN PROGRAM. and end with END PROGRAM.. A different kind of program block may start with DEFINE and end with !ENDDEFINE.. Between these commands you’ll find code that looks a lot like basic […]

SPSS LAG Function – What and Why?

In SPSS, LAG is a function that returns the value of a previous case. It’s mostly used on data with multiple rows of data per respondent. Here it comes in handy for calculating cumulative sums or counts. SPSS Lag Function SPSS LAG – Basic Example 1 The most basic way to use LAG is COMPUTE V1 = LAG(V2). This […]

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

Regression over Many Dependent Variables

“I have a data file on which I’d like to carry out several regression analyses. I have four dependent variables, v1 through v4. The independent variables (v5 through v14) are the same for all analyses. How can I carry out these four analyses in an efficient way that would also work for 100 dependent variables?” […]

SPSS with Python – Looping over Scatterplots

The right way for looping over tables, charts and other procedures in SPSS is with Python. We’ll show how to do so on some real world examples. We’ll use alcotest.sav throughout, part of which is shown below. Note that you need to have the SPSS Python Essentials properly installed for running these examples on your own computer. Example 1: Simple Loop over Bar […]

Association between Metric Variables

Summary This tutorial will investigate the association between metric variables with nice tables and charts. As an example, we’ll use income_2010 and income_2011 from freelancers.sav. Quick Data Check Before jumping into analyses, let’s first just inspect whether both variables have plausible values. A fast way for doing so is generating a histogram by running FREQUENCIES. The syntax below does just that. […]

SPSS Create Dummy Variables Tool

Summary Creating dummy variables for several categorical variables by basic syntax is usually not hard. However, applying proper variable labels to the newly created dummy variables requires quite a bit of effort. The tool presented in this tutorial will take care of this -and some other issues- more easily. SPSS Dummy Variables Tool SPSS Create Dummy Variables Tool Instructions […]

Creating Dummy Variables in SPSS

Dummy coding a variable means representing each of its values by a separate dichotomous variable. These so-called dummy variables contain only ones and zeroes (and sometimes missing values). The figure below shows how the variable “pet” from favorite_pets.sav has been dummy coded as pet_d1 through pet_d4. Dummy Variables in SPSS Note that, for example, pet_d2 represents the value 2 on […]

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

Linear Regression in SPSS – A Simple Example

A company wants to know how job performance relates to IQ, motivation and social support. They collect data on 60 employees, resulting in job_performance.sav. Part of these data are shown below. Quick Data Check We usually start our analysis with a solid data inspection. Since that’s already been done for the data at hand, we’ll limit it […]

How to Draw a Regression Line in SPSS?

This tutorial shows how to draw a regression line in SPSS. We encourage you to follow along by downloading and opening job_performance.sav, part of which are shown below. Our data basically just hold job performance scores and IQ, motivation and social support which -supposedly- contribute to job performance. The meaning of our variables is seen under variable view, […]

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

Simple Linear Regression – Quick Introduction

Correlation B Coefficients Intercept Regression Residuals R-Square Simple linear regression is a technique that predicts a metric variable from a linear relation with another metric variable.Remember that “metric variables” refers to variables measured at interval or ratio level. The point here is that calculations -like addition and subtraction- are meaningful on metric variables (“salary” or […]

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 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 Scatterplot Tutorial

A large bank wants to gain insight into their employees’ job satisfaction. They carried out a survey, the results of which are in bank_clean.sav. The survey included the number of hours people work per week and their gross monthly salaries. Research Question It seems obvious that working hours are related to monthly salaries: employees who work […]