Spss syntax how to list values ​​with labels

I like to use the list command in spss, but it can get confused when it outputs a number that matches the category, not the label.

For instance:

Data list list
/ id var1 var2.
BEGIN DATA.
1, 2, 2
2, 2, 2
3, 1, 1
END DATA.
LIST.
VALUE LABELS VAR1 1 'YES' 2 'NO'.
VALUE LABELS VAR2 1 'YES' 2 'NO'.
LIST.

The output of LIST matches the output of value labels. I would like to print value labels, not the value itself. Any help would be greatly appreciated

+4
source share
1 answer

Using the command LIST, I do not believe that you can control, print values ​​and labels for this.

SUMMARIZE (Analyze--> Reports-->Case Summaries...), . . SET TNUMBERS. , TVARS , . .

PRESERVE.
SET TVARS=LABELS TNUMBERS=LABELS.
SUMMARIZE
  /TABLES=ALL
  /FORMAT=VALIDLIST NOCASENUM TOTAL LIMIT=100
  /TITLE='CASE SUMMARIES'
  /MISSING=VARIABLE
  /CELLS=COUNT.
RESTORE.

PRESERVE RESTORE ( ) , - (SET), .

+3

Source: https://habr.com/ru/post/1661474/


All Articles