Changing Variable Properties 3 – Type

SPSS offers several ways to change a variable’s type. This tutorial will walk you through some examples. SPSS Variable Type – Why Change it in the First Place? What you can do with a variable may depend on its type and – to a lesser extent – on its format. For example, you can extract substrings from string variables but not from numeric variables. […]

Changing Variable Properties 2 – Names

The right way for changing variable names in SPSS is using RENAME VARIABLES. Changing variable names manually in variable view is a bad idea because you can’t keep track of what you did. This tutorial shows a better alternative. Changing Variable Names in SPSS Changing variable names with syntax is straightforward with the RENAME VARIABLES command. The main thing to keep in mind is […]

Changing Variable Properties 4 – Width and Decimals

Changing a variable’s width is rarely necessary. Nevertheless, it’s good to know how when it’s needed and how it’s done. Changing Variable Width in SPSS For string variables, width refers to how many characters a value can hold. An exception are multibyte characters as explained in SPSS Unicode Mode. Somewhat confusingly, “width” is not the width of a variable’s column […]

Changing Variable Properties 1 – Introduction

A great way to start working from syntax is using “Paste” instead of “Ok”. However, there’s no “Paste” option for modifying most variable properties. This tutorial shows how handle that properly. Changing Variable Properties Note that all variable properties (such as variable labels and value labels) are part of the SPSS dictionary. It is strongly recommended you use syntax in […]

Comparing Metric Variables

Summary This tutorial shows how to create proper tables and means charts for multiple metric variables. If statistical assumptions are satisfied, these may be followed up by a repeated measures ANOVA. We’ll use income 2010 through income_2014 from freelancers.sav throughout this tutorial. SPSS FREQUENCIES for Inspecting Histograms We’ll first inspect the data in income_2010 through income_2014 by running basic histograms. This […]

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

Association between Metric and Categorical Variable

Summary This tutorial shows how to run nice tables and graphs for investigating the association between a metric and a categorical variable. If statistical assumptions are met, these may be followed up by an ANOVA. As an example, we’ll use freelancers.sav and see whether (and how) sector_2010 is related to income_2010. Data Inspection and FILTER We’ll first inspect FREQUENCIES for sector_2010 by running the syntax below […]

Association between Metric and Dichotomous Variable

Summary This tutorial shows how to create nice tables and charts for studying the association between a dichotomous and a metric variable. If statistical assumptions are met, these may be followed up by an independent samples t test. As an example, we’ll investigate whether there’s an association between income_2010 and gender in freelancers.sav: is the average income over 2010 equal for […]

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