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

Example<br />

Example<br />

* Use matrix output to classify data in a different file.<br />

DISCRIMINANT 485<br />

GET FILE=UB2 /KEEP WORLD FOOD SERVICE BUS MECHANIC<br />

CONSTRUC COOK MANAGER FSALES APPL RENT.<br />

DISCRIMINANT GROUPS=WORLD(1,3)<br />

/VARIABLES=FOOD SERVICE BUS MECHANIC CONSTRUC COOK MANAGER FSALES<br />

/METHOD=WILKS<br />

/PRIORS=SIZE<br />

/MATRIX=IN(DISCMTX).<br />

• The matrix data file created in the previous example is used to classify data from the file UB2.<br />

GET FILE=UNIONBK /KEEP WORLD FOOD SERVICE BUS MECHANIC<br />

CONSTRUC COOK MANAGER FSALES APPL RENT.<br />

DISCRIMINANT GROUPS=WORLD(1,3)<br />

/VARIABLES=FOOD SERVICE BUS MECHANIC CONSTRUC COOK MANAGER FSALES<br />

/METHOD=WILKS<br />

/PRIORS=SIZE<br />

/MATRIX=OUT(*).<br />

LIST.<br />

• DISCRIMINANT writes the same matrix as in the first example. However, the matrix data<br />

file replaces the working data file.<br />

• The LIST command is executed on the matrix file, not on the UNIONBK file.<br />

GET FILE=DISCMTX.<br />

DISCRIMINANT GROUPS=WORLD(1,3)<br />

/VARIABLES=FOOD SERVICE BUS MECHANIC CONSTRUC COOK MANAGER FSALES<br />

/METHOD=RAO<br />

/MATRIX=IN(*).<br />

• This example assumes that you are starting a new session and want to read an existing<br />

matrix data file. GET retrieves the matrix data file DISCMTX.<br />

• MATRIX=IN specifies an asterisk because the matrix data file is the working data file. If<br />

MATRIX=IN(DISCMTX) is specified, the program issues an error message.<br />

• If the GET command is omitted, the program issues an error message.

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

Saved successfully!

Ooh no, something went wrong!