Previous Page | Next Page

Functions and CALL Routines

NMISS Function



Returns the number of missing numeric values.
Category: Descriptive Statistics

Syntax
Arguments
Comparisons
Examples

Syntax

NMISS(argument-1<,...argument-n>)


Arguments

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.


Comparisons

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.


Examples

SAS Statements Results
x1=nmiss(1,0,.,2,5,.);
2
x2=nmiss(1,0);
0
x3=nmiss(of x1-x2);
0

Previous Page | Next Page | Top of Page