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.

962 MATRIX DATA<br />

Example<br />

• No other specifications are required.<br />

* Matrix data with procedure DISCRIMINANT’.<br />

MATRIX DATA VARIABLES=WORLD ROWTYPE_ FOOD APPL SERVICE RENT<br />

/FACTORS=WORLD.<br />

BEGIN DATA<br />

1 N 25 25 25 25<br />

1 MEAN 76.64 77.32 81.52 101.40<br />

2 N 7 7 7 7<br />

2 MEAN 76.1428571 85.2857143 60.8571429 249.571429<br />

3 N 13 13 13 13<br />

3 MEAN 55.5384615 76 63.4615385 86.3076923<br />

. SD 16.4634139 22.5509310 16.8086768 77.1085326<br />

. CORR 1<br />

. CORR .1425366 1<br />

. CORR .5644693 .2762615 1<br />

. CORR .2133413 -.0499003 .0417468 1<br />

END DATA.<br />

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

/VARIABLES=FOOD APPL SERVICE RENT /METHOD=WILKS /MATRIX=IN(*).<br />

• MATRIX DATA is used to generate a working data file that DISCRIMINANT can read.<br />

DISCRIMINANT reads the mean, count (unweighted N), and N (weighted N) for each<br />

cell in the data, as well as pooled values for the standard deviation and correlation<br />

coefficients. If count equals N, only N needs to be supplied.<br />

• ROWTYPE_ is specified on VARIABLES to identify record types in the data. Though<br />

CONTENTS and CELLS can be used to identify record types and distinguish between<br />

within-cells data and pooled values, it is usually easier to specify ROWTYPE_ on<br />

VARIABLES and enter the ROWTYPE_ values in the data.<br />

• Because factors are present in the data, the continuous variables (FOOD, APPL, SERVICE,<br />

and RENT) must be specified last on VARIABLES and must be last in the data.<br />

• The FACTORS subcommand identifies WORLD as the factor variable.<br />

• BEGIN DATA immediately follows MATRIX DATA.<br />

• N and MEAN values for each cell are entered in the data.<br />

• ROWTYPE_ values for the pooled records are SD and COR. MATRIX DATA assigns the<br />

values STDDEV and CORR to the corresponding vectors in the matrix. Records with<br />

pooled information have the system-missing value (.) for the factors.<br />

• The DISCRIMINANT procedure reads the data matrix. An asterisk (*) is specified as the input<br />

file on the MATRIX subcommand because the data are in the working file.

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

Saved successfully!

Ooh no, something went wrong!