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

Quantlet: 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



Author: A. Kaufmann, K. Bartels, 19990921
(C) MD*TECH Method and Data Technologies, 05.02.2006