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.

948 MATRIX—END MATRIX<br />

NAMES Specification<br />

NAMES specifies a vector to store the variable names from the SPSS data file.<br />

• If you omit the NAMES specification, the variable names are not available to the MATRIX<br />

procedure.<br />

• In place of a vector name, you can use a matrix expression that evaluates to a vector, such<br />

as A(N+1,:).<br />

MISSING Specification<br />

MISSING specifies how missing values declared for the SPSS data file should be handled.<br />

• The MISSING specification is required if the SPSS data file contains missing values for any<br />

variable being read.<br />

• If you omit the MISSING specification and a missing value is encountered for a variable<br />

being read, an error message is displayed and the GET statement is not executed.<br />

The following keywords are available on the MISSING specification. There is no default.<br />

ACCEPT Accept user-missing values for entry. If the system-missing value exists for a variable<br />

to be read, you must specify SYSMIS to indicate how the system-missing value<br />

should be handled (see “SYSMIS Specification” below).<br />

OMIT Skip an entire observation when a variable with a missing value is encountered.<br />

value Recode all missing values encountered (including the system-missing value) to the<br />

specified value for entry. The replacement value can be any numeric constant.<br />

SYSMIS Specification<br />

SYSMIS specifies how system-missing values should be handled when you have specified<br />

ACCEPT on MISSING.<br />

• The SYSMIS specification is ignored unless ACCEPT is specified on MISSING.<br />

• If you specify ACCEPT on MISSING but omit the SYSMIS specification, and a systemmissing<br />

value is encountered for a variable being read, an error message is displayed and<br />

the GET statement is not executed.<br />

The following keywords are available on the SYSMIS specification. There is no default.<br />

OMIT Skip an entire observation when a variable with a system-missing value is encountered.<br />

value Recode all system-missing values encountered to the specified value for entry. The<br />

replacement value can be any numeric constant.<br />

Example<br />

GET SCORES<br />

/VARIABLES = TEST1,TEST2,TEST3<br />

/NAMES = VARNAMES<br />

/MISSING = ACCEPT<br />

/SYSMIS = -1.0.

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

Saved successfully!

Ooh no, something went wrong!