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.

1242 <strong>Syntax</strong> <strong>Reference</strong><br />

Example<br />

DATA LIST FREE/V1 V2 V3.<br />

BEGIN DATA<br />

3 1 1<br />

6 1 1<br />

3 1 3<br />

3 2 2<br />

3 2 2<br />

6 2 2<br />

6 1 3<br />

6 2 2<br />

3 2 2<br />

6 2 1<br />

END DATA.<br />

AUTORECODE V1 /INTO NEWVAR1.<br />

PRINCALS VARIABLES=NEWVAR1 V2(2) V3(3).<br />

• DATA LIST defines three variables, V1, V2, and V3.<br />

• V1 has two levels, coded 3 and 6, V2 has two levels, coded 1 and 2, and V3 has three levels,<br />

coded 1, 2, and 3.<br />

• The AUTORECODE command creates NEWVAR1 containing recoded values of V1. Values<br />

of 3 are recoded to 1 and values of 6 are recoded to 2.<br />

• A maximum value of 2 can then be specified on the PRINCALS VARIABLES subcommand<br />

as the maximum category value for both NEWVAR1 and V2. A maximum value of 3 is<br />

specified for V3.<br />

ANALYSIS Subcommand<br />

ANALYSIS specifies the variables to be used in the computations and the optimal scaling level<br />

used by PRINCALS to quantify each variable or variable list.<br />

• If ANALYSIS is not specified, an ordinal level of optimal scaling is assumed for all variables.<br />

• The specification on ANALYSIS is a variable list and an optional keyword in parentheses<br />

to indicate the optimal scaling level.<br />

• The variables on the variable list must also be specified on the VARIABLES subcommand.<br />

• Variables listed on the VARIABLES subcommand but not on the ANALYSIS subcommand<br />

can still be used to label object scores on the PLOT subcommand.<br />

The following keywords can be specified to indicate the optimal scaling level:<br />

MNOM Multiple nominal. The quantifications can be different for each dimension. When<br />

all variables are multiple nominal, PRINCALS gives the same results as HOMALS.<br />

SNOM Single nominal. PRINCALS gives only one quantification for each category. Objects<br />

in the same category (cases with the same value on a variable) obtain the same<br />

quantification. When DIMENSION=1 and all variables are SNOM, this solution is the<br />

same as that of the first HOMALS dimension.<br />

ORDI Ordinal. This is the default for variables listed without optimal scaling levels and<br />

for all variables if the ANALYSIS subcommand is not used. The order of the<br />

categories of the observed variable is preserved in the quantified variable.

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

Saved successfully!

Ooh no, something went wrong!