Retrieves the explained Gini coefficient or the Lorenz-\(R^2\) from an object of class "PLR"
.
# S3 method for PLR
ineqExplained(
object,
type = c("Gini.explained", "Lorenz-R2"),
pars.idx = "BIC",
...
)
A numeric value representing the requested inequality metric.
An object of S3 class "PLR"
. The object might also have S3 classes "PLR_boot"
and/or "PLR_cv"
(both inherit from class "PLR"
)
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\)).
What grid and penalty parameters should be used for parameter selection. Either a character string specifying the selection method, where the possible values are:
"BIC"
(default) - Always available.
"Boot"
- Available if object
inherits from "PLR_boot"
.
"CV"
- Available if object
inherits from "PLR_cv"
.
Or a numeric vector of length 2, where the first element is the index of the grid parameter and the second is the index of the penalty parameter.
Additional arguments.