Functions and CALL Routines |
Returns the number of missing numeric values.
Category: |
Descriptive Statistics
|
NMISS(argument-1<,...argument-n>)
|
-
argument
-
specifies a numeric constant, variable,
or expression. At least one argument is required. The argument list can consist
of a variable list, which is preceded by OF.
The NMISS function returns the number of missing values,
whereas the N function returns the number of nonmissing values. NMISS requires
numeric values, whereas CMISS works with both numeric and character values.
NMISS works with multiple numeric values, whereas MISSING works with only
one value that can be either numeric or character.
SAS Statements |
Results |
x1=nmiss(1,0,.,2,5,.);
|
2
|
x2=nmiss(1,0);
|
0
|
x3=nmiss(of x1-x2);
|
0
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.