rank_wt {rineq}R Documentation

Calculates the weighted rank

Description

Calculates the weighted rank

Usage

rank_wt(x, wt)

Arguments

x

numeric vector

wt

weights

Value

A numeric vector containing weighted fractional ranks of the elements of x.

Author(s)

Peter Konings

References

Kakwani et al., 1997.

Examples

x <- sample(1:10, size = 10, replace = TRUE)
x.weight <- seq(0, 1, length.out = 10)
rank_wt(x, wt = x.weight)

[Package rineq version 0.2.3 Index]