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 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 SELECT IF – Simple Tutorial

In SPSS, SELECT IF deletes cases (rows of data) that don’t satisfy some condition(s). Like so, SELECT IF basically means “don’t delete if …” A minimal example isSELECT IF(GENDER = 1). SPSS SELECT IF – Some Examples Say we collected data on our employees and the resulting data file is employees.sav. Our client is only interested in female […]