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.

1322 RANK<br />

• String variables cannot be specified. Use AUTORECODE to recode string variables for<br />

ranking.<br />

Example<br />

RANK VARIABLES=MURDERS ROBBERY (D).<br />

• RANK ranks MURDERS and ROBBERY and creates two new variables in the working data<br />

file: RMURDERS and RROBBERY.<br />

• D specifies descending order of rank. D applies to both MURDERS and ROBBERY.<br />

Example<br />

RANK VARIABLES=MURDERS (D) ROBBERY (A) BY ETHNIC.<br />

• Ranks are computed within each group defined by ETHNIC. MURDERS is ranked in<br />

descending order and ROBBERY in ascending order within each group of ETHNIC. The<br />

working data file does not have to be sorted by ETHNIC.<br />

Function Subcommands<br />

The optional function subcommands specify different rank functions. RANK is the default<br />

function.<br />

• Any combination of function subcommands can be specified for a RANK procedure, but<br />

each function can be specified only once.<br />

• Each function subcommand must be preceded by a slash.<br />

• The functions assign default names to the new variables unless keyword INTO is specified<br />

(see the INTO keyword on p. 1323).<br />

RANK Simple ranks. The values for the new variable are the ranks. Rank can either<br />

be ascending or descending, as indicated on the VARIABLES subcommand.<br />

Rank values can be affected by the specification on the TIES subcommand.<br />

RFRACTION Fractional ranks. The values for the new variable equal the ranks divided by<br />

the sum of the weights of the nonmissing cases. If HIGH is specified on TIES,<br />

fractional rank values are an empirical cumulative distribution.<br />

NORMAL Normal scores (Lehmann, 1975). The new variable contains the inverse of<br />

the standard normal cumulative distribution of the proportion estimate<br />

defined by the FRACTION subcommand. The default for FRACTION is BLOM.<br />

PERCENT Fractional ranks as a percentage. The new variable contains fractional ranks<br />

multiplied by 100.<br />

PROPORTION Proportion estimates. The estimation method is specified by the FRACTION<br />

subcommand. The default for FRACTION is BLOM.<br />

N Sum of case weights. The new variable is a constant.<br />

SAVAGE Savage scores (Lehmann, 1975). The new variable contains Savage (exponential)<br />

scores.

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

Saved successfully!

Ooh no, something went wrong!