*Copyright @ www.mycsg.in;


Numeric functions to analyse variables in SAS

Function Definition
N Counts the number of non-missing numeric values in a list of variables.
NMISS Counts the number of missing numeric values in a list of variables.
SUM Returns the sum of non-missing numeric values in a list of variables.
MEAN Returns the average of non-missing numeric values in a list of variables.
MIN Returns the smallest non-missing numeric value in a list of variables.
MAX Returns the largest non-missing numeric value in a list of variables.

Create sample data

Example of the N function

Example of the NMISS function

Example of the SUM function

Example of the MEAN function

Example of the MIN function

Example of the MAX function

Compare several numeric functions together in one step

Key points to remember