MEDIAN Function
Returns the median value.
Category: |
Descriptive Statistics |
Syntax
Required Argument
value
is a numeric constant,
variable, or expression.
Details
The MEDIAN function
returns the median of the nonmissing values. If all arguments have
missing values, the result is a missing value.
Comparisons
The MEDIAN function
returns the median of nonmissing values, whereas the MEAN function
returns the arithmetic mean (average).
Example
The following SAS statements
produce these results.