Learn R Programming

LorenzRegression (version 2.2.0)

ineqExplained.lm: Explained inequality metrics for (generalized) linear models

Description

Retrieves the explained Gini coefficient or the Lorenz-\(R^2\) from an object of class "lm".

Usage

# S3 method for lm
ineqExplained(object, type = c("Gini.explained", "Lorenz-R2"), ...)

Value

A numeric value representing the requested inequality metric.

Arguments

object

An object of S3 class "lm".

type

Character string specifying the type of inequality metric to retrieve. Options are "Gini.explained" (for the explained Gini coefficient) and "Lorenz-R2" (for the Lorenz-\(R^2\)).

...

Additional arguments passed to Gini.coef.