Learn R Programming

fastliu (version 1.0)

print.liureg: Print method for liureg objects

Description

Prints coefficients paths for Liu regression models over a grid of values for the regularization (biasing) parameter lambda.

Usage

# S3 method for liureg
print(x, digits = max(3, getOption("digits") - 3), ...)

Value

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

Arguments

x

An object of class liureg.

digits

Number of decimal places in the coefficients data.frame.

...

Not used in this implementation.

Author

Murat Genç

See Also

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

Examples

Run this code
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)
print(liu.mod)

Run the code above in your browser using DataLab