rank.wt: Ranks a numeric variable taking weights into account. Mimics...

Description Usage Arguments Value Author(s) References Examples

Description

This function calculates the weighted fractional ranks of a numeric variable.

Usage

1
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

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

decomp documentation built on May 2, 2019, 6:53 p.m.