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.

54 Universals<br />

Table 6 Missing values in arguments (Continued)<br />

Function Returns system-missing if<br />

CFVAR.n (x1,x2,...xk) fewer than n arguments are valid; the default n is 2<br />

SD.n (x1,x2,...xk)<br />

VARIANCE.n (x1,x2,...xk)<br />

LPAD(x1,x2,x3) x1 or x2 is illegal or missing<br />

LTRIM(x1,x2)<br />

RTRIM(x1,x2)<br />

RPAD(x1,x2,x3)<br />

SUBSTR(x1,x2,x3) x2 or x3 is illegal or missing<br />

NUMBER(x,format) the conversion is invalid<br />

STRING(x,format)<br />

INDEX(x1,x2,x3) x3 is invalid or missing<br />

RINDEX(x1,x2,x3)<br />

LAG (x,n) x is missing n cases previously (and always for the first n cases);<br />

the default n is 1<br />

ANY (x,x1,x2,...xk) x or all of x1, x2, ..., xk are missing<br />

RANGE (x,x1,x2,...xk)<br />

VALUE (x) x is system-missing<br />

MISSING (x) never<br />

NMISS (x1,x2,...xk)<br />

NVALID (x1,x2,...xk)<br />

SYSMIS (x)<br />

• Any function that is not listed in Table 6 returns the system-missing value when the<br />

argument is missing.<br />

• The system-missing value is a displayed as a period (.) for numeric variables.<br />

• String variables do not have system-missing values. An invalid string expression nested<br />

within a complex transformation yields a null string, which is passed to the next level of<br />

operation and treated as missing. However, an invalid string expression that is not nested<br />

is displayed as a blank string and is not treated as missing.

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

Saved successfully!

Ooh no, something went wrong!