Lorenz.graphs {LorenzRegression} | R 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. |
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 |
... |
Further arguments (see Section 'Arguments' in |
Value
A plot comprising
The Lorenz curve of response
The concentration curves of response with respect to each element of other_variables
See Also
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)
[Package LorenzRegression version 2.1.0 Index]