Retrieves the explained Gini coefficient or the Lorenz-\(R^2\) from an object of class "lm"
.
# S3 method for lm
ineqExplained(object, type = c("Gini.explained", "Lorenz-R2"), ...)
A numeric value representing the requested inequality metric.
An object of S3 class "lm"
.
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
.