Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Module Library

MEDIAN Function

returns the median of numeric data
MEDIAN( matrix)

where matrix is any n ×m matrix.

The MEDIAN function returns the median value for each column in the matrix. It computes the median of univariate numeric data contained in the specified matrix. When the number of data points is odd, it returns the middle element from the sorted order. When the number of data points is even, it returns the mean of the middle two elements. If there are missing values, the module returns an error message.

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.