1.

How Would You Determine The Number Of Missing Or Nonmissing Values In Computations?

Answer»

To determine the NUMBER of missing VALUES that are excluded in a computation, use the NMISS function.

data _null_;
m = . ;
y = 4 ;
Z = 0 ;
N = N(m , y, z);
NMISS = NMISS (m , y, z);
run;

The above program RESULTS in N = 2 (Number of non missing values) and NMISS = 1 (number of missing values).

To determine the number of missing values that are excluded in a computation, use the NMISS function.

data _null_;
m = . ;
y = 4 ;
z = 0 ;
N = N(m , y, z);
NMISS = NMISS (m , y, z);
run;

The above program results in N = 2 (Number of non missing values) and NMISS = 1 (number of missing values).



Discussion

No Comment Found