Lorenz.graphs: Graphs of concentration curves

View source: R/Lorenz-graphs.R

Lorenz.graphsR Documentation

Graphs of concentration curves

Description

Lorenz.graphs traces the Lorenz curve of a response and the concentration curve of the response and each of a series of covariates.

Usage

Lorenz.graphs(formula, data, difference = FALSE, ...)

Arguments

formula

A formula object of the form response ~ other_variables. The form response ~ 1 is used to display only the Lorenz curve of the response.

data

A dataframe containing the variables of interest

difference

A logical determining whether the vertical axis should be expressed in terms of deviation from perfect equality. Default is FALSE.

...

Further arguments (see Section 'Arguments' in Lorenz.curve).

Value

A plot comprising

  • The Lorenz curve of response

  • The concentration curves of response with respect to each element of other_variables

See Also

Lorenz.curve, Gini.coef

Examples

data(Data.Incomes)
Lorenz.graphs(Income ~ Age + Work.Hours, data = Data.Incomes)
# Expressing now the vertical axis as the deviation from perfect equality
Lorenz.graphs(Income ~ Age + Work.Hours, data = Data.Incomes, difference = TRUE)


LorenzRegression documentation built on June 27, 2025, 9:07 a.m.