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 />

PRINCALS 1241<br />

can use COMPUTE or RECODE to change the value to something outside of the valid<br />

range. Values outside of the range (less than 1 or greater than the maximum value) are<br />

treated as system-missing.<br />

PRINCALS VARIABLES=ACOLA BCOLA(2) PRICEA PRICEB(5)<br />

/ANALYSIS=ACOLA BCOLA(SNOM) PRICEA PRICEB(NUME)<br />

/PRINT=QUANT OBJECT.<br />

• VARIABLES defines the variables and their maximum number of levels.<br />

• The ANALYSIS subcommand specifies that variables ACOLA and BCOLA are single nominal<br />

(SNOM) and that variables PRICEA and PRICEB are numeric (NUME).<br />

• The PRINT subcommand lists the category quantifications and object scores.<br />

• By default, plots of the category quantifications and the object scores are produced.<br />

VARIABLES Subcommand<br />

VARIABLES specifies all of the variables that will be used in the current PRINCALS procedure.<br />

• The VARIABLES subcommand is required and precedes all other subcommands. The<br />

actual word VARIABLES can be omitted.<br />

• Each variable or variable list is followed by the maximum number of categories (levels)<br />

in parentheses.<br />

• The number specified in parentheses indicates the number of categories and the maximum<br />

category value. For example, VAR1(3) indicates that VAR1 has three categories coded 1, 2,<br />

and 3. However, if a variable is not coded with consecutive integers, the number of<br />

categories used in the analysis will differ from the number of observed categories. For<br />

example, if a three category variable is coded {2, 4, 6}, the maximum category value is 6.<br />

The analysis treats the variable as having six categories, three of which are not observed<br />

and receive quantifications of 0.<br />

• To avoid unnecessary output, use the AUTORECODE or RECODE command before<br />

PRINCALS to recode a categorical variable that was coded with nonsequential values. As<br />

noted in “Limitations,” recoding is not recommended with variables treated as numeric<br />

(see the SPSS Base <strong>Syntax</strong> <strong>Reference</strong> Guide for more information on AUTORECODE and<br />

RECODE).

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

Saved successfully!

Ooh no, something went wrong!