Chapter Contents |
Previous |
Next |
Language Reference |
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 5The RANKTIE function differs from the RANK function in that RANKTIE averages the ranks of tied values, whereas RANK breaks ties arbitrarily.
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.