residuals.liureg {fastliu}R Documentation

Liu Regression Residuals

Description

Liu Regression Residuals

Usage

## S3 method for class 'liureg'
residuals(object, ...)

Arguments

object

An object of class liureg.

...

Not used in this implementation.

Value

The returned object is a vector or matrix whose columns are Liu residuals for each lambda.

Author(s)

Murat Genç

See Also

liureg(), pressliu(), residuals()

Examples

Hitters <- na.omit(Hitters)
X <- model.matrix(Salary ~ ., Hitters)[, -1]
y <- Hitters$Salary
lam <- seq(0, 1, 0.01)
liu.mod <- liureg(X, y, lam)
residuals(liu.mod)

[Package fastliu version 1.0 Index]