plot.liureg {fastliu} | R Documentation |
Plot method for liureg objects
## S3 method for class 'liureg'
plot(x, type = c("coefpath", "biasvar", "info"), ...)
x |
A |
type |
What to plot on the vertical axis. |
... |
Other graphical parameters to |
No return value.
Murat Genç
liureg()
, predict()
, summary()
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")