Learn R Programming

LorenzRegression (version 2.2.0)

ineqExplained.PLR: Explained inequality metrics for the penalized Lorenz regression

Description

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

Usage

# S3 method for PLR
ineqExplained(
  object,
  type = c("Gini.explained", "Lorenz-R2"),
  pars.idx = "BIC",
  ...
)

Value

A numeric value representing the requested inequality metric.

Arguments

object

An object of S3 class "PLR". The object might also have S3 classes "PLR_boot" and/or "PLR_cv" (both inherit from class "PLR")

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\)).

pars.idx

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.