val2rank: Converting the values of a vector into their rank
Description
converts the values of a vector into their rank
Usage
val2rank(X, opt)
Value
R : rank vector
Arguments
X
: vector to treat
opt
: integer which gives the rule to follow in case of tied ranks (repeated values): if opt = 1, one returns the average rank, if opt = 2, one returns the corresponding rank in the series of the unique values, if opt = 3, return the max rank