Previous Page | Next Page

Functions and CALL Routines

MAD Function



Returns the median absolute deviation from the median.
Category: Descriptive Statistics

Syntax
Arguments
Details
Examples
See Also

Syntax

MAD(value-1 <, value-2...>)


Arguments

value

specifies a numeric constant, variable, or expression of which the median absolute deviation from the median is to be computed.


Details

If all arguments have missing values, the result is a missing value. Otherwise, the result is the median absolute deviation from the median of the non-missing values. The formula for the median is the same as the one that is used in the UNIVARIATE procedure. For more information, see Base SAS Procedures Guide.


Examples

SAS Statements Results
mad=mad(2,4,1,3,5,999999);
put mad;
 1.5


See Also

Functions:

IQR Function

MEDIAN Function

PCTL Function

Previous Page | Next Page | Top of Page