COUNT
COUNT
creates a numeric variable that, for each case, counts the occurrences of the
same value (or list of values) across a list of variables.
COUNT varname=varlist(value list) [/varname=...]
Keywords for numeric value lists:
LOWEST, LO, HIGHEST, HI, THRU,
MISSING, SYSMIS
This command does not read the active dataset. It is stored, pending execution with the next command that reads the dataset. See the topic Command Order for more information.
Syntax for the COUNT
command
can be generated from the Count Occurrences of Values within Cases dialog.
Example
COUNT TARGET=V1 V2 V3 (2).