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