SAS Function to handle MISSING data - NMISS
Syntax : NMISS(argument,...argument-n)
Description: The NMISS() function returns the number of missing values in the specified list of numeric variables.
Note:The NMISS() function converts any character values to numeric before assessing if the argument value is missing.
MISSING function vs NMISS function : NMISS works with multiple numeric values, whereas MISSING works with only one value that can be either numeric or character
Example : count the number of the variables X, Y, and Z which have missing values:
Count=nmiss(x,y,z)
Count=nmiss(of x y z)
Code:
Result:
Got Questions? Please put them in comment box....
Cheers
Syntax : NMISS(argument,...argument-n)
Description: The NMISS() function returns the number of missing values in the specified list of numeric variables.
Note:The NMISS() function converts any character values to numeric before assessing if the argument value is missing.
MISSING function vs NMISS function : NMISS works with multiple numeric values, whereas MISSING works with only one value that can be either numeric or character
Example : count the number of the variables X, Y, and Z which have missing values:
Count=nmiss(x,y,z)
Count=nmiss(of x y z)
Code:
Result:
Got Questions? Please put them in comment box....
Cheers
No comments:
Post a Comment