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

PROXIMITIES 1289<br />

• The matrices PROXIMITIES writes can be used by PROXIMITIES or other procedures.<br />

Procedures CLUSTER and ALSCAL can read a proximity matrix directly. Procedure<br />

FACTOR can read a correlation matrix written by PROXIMITIES, but RECODE must first<br />

be used to change the ROWTYPE_ value PROX to ROWTYPE_ value CORR. Also, the ID<br />

subcommand cannot be used on PROXIMITIES if the matrix will be used in FACTOR. For<br />

more information, see “Universals” on p. 3 in Volume I.<br />

• If VIEW=VARIABLE, the variables in the matrix file will have the names and labels of the<br />

original variables.<br />

• If VIEW=CASE (the default), the variables in the matrix file will be named VAR1, VAR2,<br />

...VARn, where n is the sequential number of the variable in the new file. The numeric<br />

suffix n is consecutive and does not necessarily match the number of the actual case. If<br />

there are no split files, the case number appears in the variable label in the form CASE m.<br />

The numeric suffix m is the actual case number and may not be consecutive (for example,<br />

if cases were selected before PROXIMITIES was executed).<br />

• If VIEW=CASE, a numeric variable CASENO_ is added to the matrix file. Values of<br />

CASENO_ are the case numbers in the original file.<br />

• The new file preserves the names and values of any split-file variables in effect. When<br />

split-file processing is in effect, no labels are generated for variables in the new file. The<br />

actual case number is retained by the variable ID.<br />

• Any documents contained in the working data file are not transferred to the matrix file.<br />

• PROXIMITIES can read a matrix file written by a previous PROXIMITIES procedure.<br />

• Values for split-file variables should precede values for ROWTYPE_. CASENO_ and the<br />

labeling variable (if present) should come after ROWTYPE_ and before VARNAME_.<br />

• If CASENO_ is of type string rather than numeric, it will be considered unavailable and<br />

a warning is issued.<br />

• If CASENO_ appears on a variable list, a syntax error results.<br />

• PROXIMITIES ignores unrecognized ROWTYPE_ values. In addition, it ignores variables<br />

present in the matrix file that are not specified (or used by default) on the PROXIMITIES<br />

variable list.<br />

• The program reads variable names, variable and value labels, and print and write formats<br />

from the dictionary of the matrix data file.<br />

• MATRIX=IN cannot be used unless a working data file has already been defined. To read<br />

an existing matrix data file at the beginning of a session, first use GET to retrieve the<br />

matrix file and then specify IN(*) on MATRIX.<br />

• When you read a matrix created with MATRIX DATA, you should supply a value label for<br />

PROX of either SIMILARITY or DISSIMILARITY so the matrix is correctly identified. If<br />

you do not supply a label, PROXIMITIES assumes DISSIMILARITY. (See “Format of the<br />

Matrix Data File” below.)<br />

• The variable list on PROXIMITIES can be omitted when a matrix file is used as input.<br />

When the variable list is omitted, all variables in the matrix data file are used in the

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

Saved successfully!

Ooh no, something went wrong!