Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

major

Majorization


Description

tests whether a vector x majorizes another vector y

Usage

major(x,y)

Arguments

x,y

vectors containing non-negative elements (with same length and same mean)

Details

even if x and y are comparable (i.e. have same length and same mean) it is possible that neither x majorizes y nor y majorizes x.

Value

logical. TRUE if x majorizes y (x >=(M) y), FALSE if not.

References

Marshall / Olkin: Inequalities: Theory of Majorization and Its Applications, New York 1979 (Academic Press)

See Also

Examples

# generate vectors (of incomes)
x <- c(541, 1463, 2445, 3438, 4437, 5401, 6392, 8304, 11904, 22261)
y <- c(841, 2063, 2445, 3438, 4437, 5401, 6392, 8304, 11304, 21961)
# test whether x majorizes y (TRUE, because y is result of
# Pigou-Dalton-transfers)
major(x,y)

ineq

Measuring Inequality, Concentration, and Poverty

v0.2-13
GPL-2 | GPL-3
Authors
Achim Zeileis [aut, cre], Christian Kleiber [ctb]
Initial release
2014-07-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.