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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

MATRIX DATA 961<br />

and then assign new formats with the FORMATS, PRINT FORMATS, or WRITE FORMATS<br />

commands.<br />

Format of the Raw Matrix Data File<br />

Example<br />

Table 2 Print and write formats for matrix variables<br />

Variable type Format<br />

ROWTYPE_, VARNAME_ A8<br />

Split-file variables F4.0<br />

Factors F4.0<br />

Continuous variables F10.4<br />

• If LIST is in effect on the FORMAT subcommand, the data are entered in freefield format,<br />

with blanks and commas used as separators and each scalar, vector, or row of the matrix<br />

beginning on a new record. Unlike LIST format with DATA LIST, a vector or row of the<br />

matrix can be contained on multiple records. The continuation records do not have a value<br />

for ROWTYPE_.<br />

• ROWTYPE_ values can be enclosed in apostrophes or quotes.<br />

• The order of variables in the raw data file must match the order in which they are specified<br />

on VARIABLES. However, this order does not have to correspond to the order of variables<br />

in the resulting SPSS-format matrix data file.<br />

• The way records are entered for pooled vectors or matrices when factors are present depends<br />

upon whether ROWTYPE_ is specified on the VARIABLES subcommand (see the<br />

FACTORS subcommand on p. 970).<br />

• MATRIX DATA recognizes plus and minus signs as field separators when they are not preceded<br />

by the letter D or E. This allows MATRIX DATA to read scientific notation as well as<br />

correlation matrices written by FORTRAN in F10.8 format. A plus sign preceded by a D<br />

or E is read as part of the number in scientific notation.<br />

MATRIX DATA<br />

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

• The variable ROWTYPE_ is specified on VARIABLES. ROWTYPE_ values are included in<br />

the data.

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

Saved successfully!

Ooh no, something went wrong!