coef.liureg {fastliu}R Documentation

Extract coefficient estimates from a liureg object

Description

Prints coefficient estimates from a fitted liureg object.

Usage

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

Arguments

object

A liureg object.

...

Not used in this implementation.

Value

The returned object is a data.frame containing the coefficients path.

Author(s)

Murat Genç

See Also

liureg(), predict(), summary(), pressliu(), residuals()

Examples

data("Hitters")
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)
coef(liu.mod)

[Package fastliu version 1.0 Index]