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.

MISSING VALUES<br />

MISSING VALUES {varlist}(value list) [[/]{varlist} ...]<br />

{ALL } {ALL }<br />

Keywords for numeric value lists:<br />

LO, LOWEST, HI, HIGHEST, THRU<br />

Example<br />

MISSING VALUES V1 (8,9) V2 V3 (0) V4 (’X’) V5 TO V9 (’ ’).<br />

Overview<br />

MISSING VALUES declares values for numeric and short string variables as user-missing.<br />

These values can then receive special treatment in data transformations, statistical calculations,<br />

and case selection. By default, user-missing values are treated the same as the systemmissing<br />

values. System-missing values are automatically assigned by the program when no<br />

legal value can be produced, such as when an alphabetical character is encountered in the<br />

data for a numeric variable, or when an illegal calculation, such as division by 0, is requested<br />

in a data transformation.<br />

Basic Specification<br />

The basic specification is a single variable followed by the user-missing value or values in<br />

parentheses. Each specified value for the variable is treated as user-missing for any analysis.<br />

<strong>Syntax</strong> Rules<br />

• Each variable can have a maximum of three individual user-missing values. A space or<br />

comma must separate each value. For numeric variables, you can also specify a range of<br />

missing values. See “Specifying Ranges of Missing Values” on p. 987.<br />

• The missing-value specification must correspond to the variable type (numeric or string).<br />

• The same values can be declared missing for more than one variable by specifying a<br />

variable list followed by the values in parentheses. Variable lists must have either all<br />

numeric or all string variables.<br />

• Different values can be declared missing for different variables by specifying separate<br />

values for each variable. An optional slash can be used to separate specifications.<br />

• Missing values cannot be assigned to long string variables or to scratch variables.<br />

• Missing values for short string variables must be enclosed in apostrophes or quotation<br />

marks. The value specifications must include any leading or trailing blanks. (See “String<br />

Values in <strong>Command</strong> Specifications” on p. 7 in Volume I.)<br />

985

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

Saved successfully!

Ooh no, something went wrong!