Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: xplore
See also: rank sort order

Quantlet: maxrank
Description: computes the rank vector of a given vector.

Usage: r = maxrank (x)
Input:
x n x 1 vector, data
Output:
r n x 1 vector, ranks

Note:

Example:
library("xplore")
x = #(4,1,6,5,4)
maxrank(x)

Result:
Contents of r
[1,]     3
[2,]     1
[3,]     5
[4,]     4
[5,]     3



Author: E. Giacomini, 20040805 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006