Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Language Reference

RANKTIE Function

ranks matrix elements using tie-averaging

RANKTIE( matrix)

where matrix is a numeric matrix or literal.

The RANKTIE function creates a new matrix containing elements that are the ranks of the corresponding elements of matrix. The ranks of tied values are averaged.

For example, the statements

   x={2 2 1 0 5};
   y=ranktie(x);
produce the vector
      Y
   3.5       3.5         2         1         5
The RANKTIE function differs from the RANK function in that RANKTIE averages the ranks of tied values, whereas RANK breaks ties arbitrarily.

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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