User Guide

201
File Handling a
nd Fi le Transformations
Figure 8-16
Current data for variables to cases
You want to do an independent-samples t test. You have a column group consisting of
score_a and score_b, but you don’t have the grouping variable that the procedure
requires.
Select
Restructure selected variables into cases in the Restructure Data
Wizard, restructure one variable group into a new variable named score, and create an
index named group. The new data file is shown in the following figure.
Figure 8-17
New, restructured dat a for variables to cases
When you run the independent-samples t test, you can now use group as the grouping
variable.
Example
of Cases to Variables
In this e
xample, test scores are recorded twice for each subject—before and after
a treatment.
Figure 8
-18
Current
data for cases to variables