Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: stats
See also: plotlorenz

Macro: lorenz
Description: calculates the measures of concentration of Gini and Herfindahl

Reference(s):

Usage: lorenz(y)
Input:
y (must be positive) n x 1 vector of original data or n x 2 matrix of classified data: first column = class means second column = frequencies.
Output:
Gini number in [0,1], Gini coefficient
Herfindahl number in [0,1], Herfindahl measure of concentration

Note:

Example:
library("stats")
x = normal(200)
x = abs(x)
lorenz(x)
y = 1:5 ~ #(2,6,8,5,2)
lorenz(y)
Result:
returns Gini and Herfindahl coefficients

Library: stats
See also: plotlorenz

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Author: Albrecht Kaufmann, 990725; Knut Bartels, 990921
(C) MD*TECH Method and Data Technologies, 17.8.2000