plot.liureg {fastliu} | R Documentation |
Plot method for liureg objects
Description
Plot method for liureg objects
Usage
## S3 method for class 'liureg'
plot(x, type = c("coefpath", "biasvar", "info"), ...)
Arguments
x |
A |
type |
What to plot on the vertical axis. |
... |
Other graphical parameters to |
Value
No return value.
Author(s)
Murat Genç
See Also
liureg()
, predict()
, summary()
Examples
Hitters <- na.omit(Hitters)
X <- model.matrix(Salary ~ ., Hitters)[, -1]
y <- Hitters$Salary
liu.mod <- liureg(X, y, seq(0, 1, 0.01))
# Liu coefficient paths
plot(liu.mod)
# Bias-variance trade-off
plot(liu.mod, type="biasvar")
[Package fastliu version 1.0 Index]