rank_wt: Calculates the weighted rank

View source: R/rank-wt.R

rank_wtR 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)

rineq documentation built on April 4, 2025, 4:47 a.m.