27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example<br />

ADD VALUE LABELS 89<br />

ADD VALUE LABELS STATE ’TEX’ ’TEXAS’ ’TEN’ ’TENNESSEE’<br />

’MIN’ ’MINNESOTA’.<br />

• ADD VALUE LABELS assigns labels to three values of the variable STATE. Each value and<br />

each label is specified in apostrophes.<br />

• Assuming that the variable STATE is defined as three characters wide, the labels TEXAS,<br />

TENNESSEE, and MINNESOTA will be appropriately associated with values TEX, TEN,<br />

and MIN. However, if STATE were defined as two characters wide, the program would<br />

truncate the specified values to two characters and would not be able to associate the labels<br />

correctly. Both TEX and TEN would be truncated to TE and would first be assigned the<br />

label TEXAS, which would then be changed to TENNESSEE by the second specification.<br />

Example<br />

ADD VALUE LABELS STATE REGION "U" "UNKNOWN".<br />

• The label UNKNOWN is assigned to value U for both STATE and REGION.<br />

• STATE and REGION must have the same defined width. If they do not, a separate specification<br />

must be made for each, as in the following:<br />

ADD VALUE LABELS STATE "U" "UNKNOWN" / REGION "U" "UNKNOWN".

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!