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.

MATRIX DATA<br />

MATRIX DATA VARIABLES=varlist [/FILE={INLINE**}]<br />

{file }<br />

[/FORMAT=[{LIST**}] [{LOWER**}] [{DIAGONAL**}]]<br />

{FREE } {UPPER } {NODIAGONAL}<br />

{FULL }<br />

[/SPLIT=varlist] [/FACTORS=varlist]<br />

[/CELLS=number of cells] [/N=sample size]<br />

[/CONTENTS= [CORR**] [COV] [MAT] [MSE] [DFE] [MEAN] [PROX]<br />

[{STDDEV}] [N_SCALAR] [{N_VECTOR}] [N_MATRIX] [COUNT]]<br />

{SD } {N }<br />

**Default if the subcommand is omitted.<br />

Example<br />

MATRIX DATA VARIABLES=ROWTYPE_ SAVINGS POP15 POP75 INCOME GROWTH.<br />

BEGIN DATA<br />

MEAN 9.6710 35.0896 2.2930 1106.7784 3.7576<br />

STDDEV 4.4804 9.1517 1.2907 990.8511 2.8699<br />

N 50 50 50 50 50<br />

CORR 1<br />

CORR -.4555 1<br />

CORR .3165 -.9085 1<br />

CORR .2203 -.7562 .7870 1<br />

CORR .3048 -.0478 .0253 -.1295 1<br />

END DATA.<br />

Overview<br />

MATRIX DATA reads raw matrix materials and converts them to a matrix data file that can be read<br />

by procedures that handle matrix materials. The data can include vector statistics such as means<br />

and standard deviations as well as matrices.<br />

MATRIX DATA is similar to a DATA LIST command: it defines variable names and their order<br />

in a raw data file. However, MATRIX DATA can read only data that conform to the general<br />

format of SPSS-format matrices.<br />

Matrix Files<br />

Like the matrix data files created by procedures, the file that MATRIX DATA creates contains<br />

the following variables in the indicated order. If the variables are in a different order in the<br />

raw data file, MATRIX DATA rearranges them in the working data file.<br />

• Split-file variables. These optional variables define split files. There can be up to eight<br />

split variables, and they must have numeric values. Split-file variables will appear in the<br />

order in which they are specified on the SPLIT subcommand.<br />

958

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

Saved successfully!

Ooh no, something went wrong!