View source: R/plot.cv.hqreg.R
plot.cv.hqreg | R Documentation |
Plot the cross-validation curve for a "cv.hqreg" object against the
lambda
values used, along with standard error bars.
## S3 method for class 'cv.hqreg'
plot(x, log.l = TRUE, nvars = TRUE, ...)
x |
A |
log.l |
Should |
nvars |
If |
... |
Other graphical parameters to |
Produces a plot of mean cv errors at each lambda
along with upper and lower standard error bars.
Congrui Yi <eric.ycr@gmail.com>
Yi, C. and Huang, J. (2017)
Semismooth Newton Coordinate Descent Algorithm for
Elastic-Net Penalized Huber Loss Regression and Quantile Regression,
\Sexpr[results=rd]{tools:::Rd_expr_doi("10.1080/10618600.2016.1256816")}
Journal of Computational and Graphical Statistics
hqreg
, cv.hqreg
X = matrix(rnorm(1000*100), 1000, 100)
beta = rnorm(10)
eps = 4*rnorm(1000)
y = drop(X[,1:10] %*% beta + eps)
cv = cv.hqreg(X, y, seed = 123)
plot(cv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.