plot.sdwd {sdwd} | R Documentation |
Plots the solution paths for a fitted sdwd
object.
## S3 method for class 'sdwd' plot(x, xvar=c("norm", "lambda"), color=FALSE, label=FALSE, ...)
x |
A fitted |
xvar |
Specifies the X-axis. If |
color |
If |
label |
If |
... |
Other graphical parameters to |
Plots the solution paths as a coefficient profile plot. This function is modified based on the plot
function from the gcdnet
and the glmnet
packages.
Boxiang Wang and Hui Zou
Maintainer: Boxiang Wang boxiang@umn.edu
Wang, B. and Zou, H. (2015)
“Sparse Distance Weighted Discrimination", Journal of Computational and Graphical Statistics, forthcoming.
http://arxiv.org/abs/1501.06066
Yang, Y. and Zou, H. (2013)
“An Efficient Algorithm for Computing the HHSVM and Its Generalizations",
Journal of Computational and Graphical Statistics, 22(2), 396–415
http://users.stat.umn.edu/~yiyang/resources/papers/JCGS_gcdnet.pdf
Friedman, J., Hastie, T., and Tibshirani, R. (2010), "Regularization paths for generalized
linear models via coordinate descent," Journal of Statistical Software, 33(1), 1–22
http://www.jstatsoft.org/v33/i01/paper
print.sdwd
, predict.sdwd
, coef.sdwd
, plot.sdwd
, and cv.sdwd
.
data(colon) fit = sdwd(colon$x, colon$y) par(mfrow=c(1,3)) # plots against the L1-norm of the coefficients plot(fit) # plots against the log-lambda sequence plot(fit, xvar="lambda", label=TRUE) # plots with colors plot(fit, color=TRUE)