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.

192 <strong>Syntax</strong> <strong>Reference</strong><br />

Example<br />

DISCRETIZATION subcommand for this purpose, except for variables you want to treat as<br />

numerical, since the characteristic of equal intervals in the data will not be maintained.<br />

• There must be at least three valid cases.<br />

• Split-file has no implications for CATPCA.<br />

CATPCA VARIABLES = TEST1 TEST2 TEST3 TO TEST6 TEST7 TEST8<br />

/ANALYSIS = TEST1 TO TEST2(WEIGHT=2 LEVEL=ORDI)<br />

TEST3 TO TEST5(LEVEL=SPORD INKNOT=3)<br />

TEST6 TEST7(LEVEL=SPORD DEGREE=3)<br />

TEST8(LEVEL=NUME)<br />

/DISCRETIZATION = TEST1(GROUPING NCAT=5 DISTR=UNIFORM)<br />

TEST6(GROUPING) TEST8(MULTIPLYING)<br />

/MISSING = TEST5(ACTIVE) TEST6(ACTIVE EXTRACAT) TEST8(LISTWISE)<br />

/SUPPLEMENTARY = OBJECT(1 3) VARIABLE(TEST1)<br />

/CONFIGURATION = (’iniconf.sav’)<br />

/DIMENSION = 2<br />

/NORMALIZATION = VPRINCIPAL<br />

/MAXITER = 150<br />

/CRITITER = .000001<br />

/PRINT = DESCRIP LOADING CORR QUANT(TEST1 TO TEST3) OBJECT<br />

/PLOT = TRANS(TEST2 TO TEST5) OBJECT(TEST2 TEST3)<br />

/SAVE = TRDATA OBJECT<br />

/OUTFILE = TRDATA(’c:\data\trans.sav’) OBJECT(’c:\data\obs.sav’).<br />

• VARIABLES defines variables. The keyword TO refers to the order of the variables in the<br />

working data file.<br />

• The ANALYSIS subcommand defines variables used in the analysis. It is specified that<br />

TEST1 and TEST2 have a weight of 2. For the other variables, WEIGHT is not specified;<br />

thus, they have the default weight value of 1. The optimal scaling level for TEST1 and<br />

TEST2 is ordinal, for TEST3 to TEST7 spline ordinal, and for TEST8 numerical. The<br />

keyword TO refers to the order of the variables in the VARIABLES subcommand. The<br />

splines for TEST3 to TEST5 have degree 2 (default because unspecified) and 3 interior<br />

knots. The splines for TEST6 and TEST7 have degree 3 and 2 interior knots (default<br />

because unspecified).<br />

• DISCRETIZATION specifies that TEST6 and TEST8, which are fractional-value variables,<br />

are discretized: TEST6 by recoding into 7 categories with a normal distribution (default<br />

because unspecified) and TEST8 by “multiplying.” TEST1, which is a categorical<br />

variable, is recoded into 5 categories with a close-to-uniform distribution.<br />

• MISSING specifies that objects with missing values on TEST5 and TEST6 are included in<br />

the analysis; missing values on TEST5 are replaced with the mode (default if not specified)<br />

and missing values on TEST6 are treated as an extra category. Objects with a missing<br />

value on TEST8 are excluded from the analysis. For all other variables, the default is in<br />

effect; that is, missing values (Note: values, not objects) are excluded from the analysis.<br />

• CONFIGURATION specifies iniconf.sav as the file containing the coordinates of a configuration<br />

that is to be used as the initial configuration (default because unspecified).<br />

• DIMENSION specifies the number of dimensions to be 2; that is, 2 components are<br />

computed. This is the default, so this subcommand could be omitted here.

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

Saved successfully!

Ooh no, something went wrong!