rank_wt | R Documentation |
This function calculates the weighted fractional ranks of a numeric variable.
rank_wt(x, wt)
x |
numeric vector |
wt |
weights |
a numeric vector containing weighted fractional ranks of the elements of x
.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.