User Guide

135
Data Transform
ations
Count Occurr
ences of Values within Cases
This dialog
box creates a variable that counts the occurrences of the same value(s)
in a list of variables for each case. For example, a survey might contain a list of
magazines with yes/no check boxes to indicate which magazines each respondent
reads. You c
ould count the number of yes responses for each respondent to create a
new variable that contains the total number of magazines read.
Figure 7-5
Count Occu
rrences of Values within Cases dialog box
To Count Oc curre nces of Values w ithin Cases
E From the menus choose:
Transform
Count...
E
Enter a target variable name.
E Select two or more variables of the same type (numeric or string).
E Click Define Values and specify which value or values should be counted.
Optionally, you can define a subset of cases for which to count occurrences of values.