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.

Z Scores<br />

DESCRIPTIVES 463<br />

The z-score transformation standardizes variables to the same scale, producing new variables<br />

with a mean of 0 and a standard deviation of 1. These variables are added to the working data<br />

file.<br />

• To obtain z scores for all specified variables, use the SAVE subcommand.<br />

• To obtain z scores for a subset of variables, name the new variable in parentheses following<br />

the source variable on the VARIABLES subcommand and do not use the SAVE subcommand.<br />

• Specify new names individually; a list in parentheses is not recognized.<br />

• The new variable name can be any acceptable variable name that is not already part of the<br />

working data file. For information on variable naming rules, see “Variable Names” on p.<br />

21.<br />

Example<br />

DESCRIPTIVES VARIABLES=NTCSAL NTCPUR (PURCHZ) NTCPRI (PRICEZ).<br />

• DESCRIPTIVES creates z-score variables named PURCHZ and PRICEZ for NTCPUR and<br />

NTCPRI, respectively. No z-score variable is created for NTCSAL.<br />

SAVE Subcommand<br />

SAVE creates a z-score variable for each variable specified on the VARIABLES subcommand.<br />

The new variables are added to the working data file.<br />

• When DESCRIPTIVES creates new z-score variables, it displays the source variable<br />

names, the new variable names, and their labels in the Notes table.<br />

• DESCRIPTIVES automatically supplies variable names for the new variables. The new<br />

variable name is created by prefixing the letter Z to the first seven characters of the source<br />

variable name. For example, ZNTCPRI is the z-score variable for NTCPRI.<br />

• If the default naming convention duplicates variable names in the working data file,<br />

DESCRIPTIVES uses an alternative naming convention: first ZSC001 through ZSC099,<br />

then STDZ01 through STDZ09, then ZZZZ01 through ZZZZ09, and then ZQZQ01 through<br />

ZQZQ09.<br />

• Variable labels are created by prefixing ZSCORE to the first 31 characters of the source<br />

variable label. If the alternative naming convention is used, DESCRIPTIVES prefixes<br />

ZSCORE(varname) to the first 31 characters of the label. If the source variable does not<br />

have a label, DESCRIPTIVES uses ZSCORE(varname) for the label.<br />

• If you specify new names on the VARIABLES subcommand and use the SAVE subcommand,<br />

DESCRIPTIVES creates one new variable for each variable on the VARIABLES subcommand,<br />

using default names for variables not assigned names on VARIABLES.<br />

• If at any time you want to change any of the variable names, whether those DESCRIPTIVES<br />

created or those you previously assigned, you can do so with the RENAME VARIABLES<br />

command.

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

Saved successfully!

Ooh no, something went wrong!