Learn R Programming

LorenzRegression (version 2.2.0)

coef.PLR: Estimated coefficients for the penalized Lorenz regression

Description

Provides the estimated coefficients for an object of class "PLR".

Usage

# S3 method for PLR
coef(object, renormalize = TRUE, pars.idx = "BIC", ...)

Value

a vector gathering the estimated coefficients.

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")

renormalize

A logical value determining whether the coefficient vector should be re-normalized to match the representation where the first category of each categorical variable is omitted. Default value is TRUE

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

See Also

Lorenz.Reg

Examples

Run this code
## For examples see example(Lorenz.Reg), example(Lorenz.boot) and example(PLR.CV)

Run the code above in your browser using DataLab