plot.gcdnet | R Documentation |
Produces a coefficient profile plot of the coefficient paths for a fitted
gcdnet
object. This function is modified based on the
plot
function from the glmnet
package.
## S3 method for class 'gcdnet' plot(x, xvar = c("norm", "lambda"), color = FALSE, label = FALSE, ...)
x |
fitted |
xvar |
what is on the X-axis. |
color |
if |
label |
if |
... |
other graphical parameters to plot |
A coefficient profile plot is produced.
Yi Yang, Yuwen Gu and Hui Zou
Maintainer: Yi Yang
<yi.yang6@mcgill.ca>
Yang, Y. and Zou, H. (2012).
"An Efficient Algorithm for Computing The HHSVM and Its Generalizations."
Journal of Computational and Graphical Statistics, 22, 396-415.
BugReport: https://github.com/emeryyi/gcdnet
Gu, Y., and Zou, H. (2016).
"High-dimensional generalizations of asymmetric least squares regression and their applications."
The Annals of Statistics, 44(6), 2661–2694.
Friedman, J., Hastie, T., and Tibshirani, R. (2010).
"Regularization paths for generalized linear models via coordinate descent."
Journal of Statistical Software, 33, 1.
https://www.jstatsoft.org/v33/i01/
data(FHT) m1 <- gcdnet(x = FHT$x,y = FHT$y) par(mfrow = c(1,3)) plot(m1) # plots against the L1-norm of the coefficients plot(m1,xvar = "lambda",label = TRUE) # plots against the log-lambda sequence plot(m1,color = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.