powered by
Calculates the weighted rank
rank_wt(x, wt)
A numeric vector containing weighted fractional ranks of the elements of x.
x
numeric vector
weights
Peter Konings
Kakwani et al., 1997.
x <- sample(1:10, size = 10, replace = TRUE) x.weight <- seq(0, 1, length.out = 10) rank_wt(x, wt = x.weight)
Run the code above in your browser using DataLab