Learn R Programming

LorenzRegression (version 2.2.0)

Lorenz.graphs: 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, ...)

Value

A plot comprising

  • The Lorenz curve of response

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

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).

See Also

Lorenz.curve, Gini.coef

Examples

Run this code
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)

Run the code above in your browser using DataLab