plot.hqreg | R Documentation |
Produce a plot of the coefficient paths for a fitted
"hqreg"
object.
## S3 method for class 'hqreg'
plot(x, xvar = c("lambda", "norm"), log.l= TRUE, nvars = TRUE,
alpha = 1, ...)
x |
A |
xvar |
What is on the X-axis. |
log.l |
Should |
nvars |
If |
alpha |
A value between 0 and 1 for alpha transparency channel(0 means transparent and 1 means opaque), helpful when the number of variables is large. |
... |
Other graphical parameters to |
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
X = matrix(rnorm(1000*100), 1000, 100)
beta = rnorm(10)
eps = 4*rnorm(1000)
y = drop(X[,1:10] %*% beta + eps)
fit = hqreg(X, y)
par(mfrow = c(2,2))
plot(fit)
plot(fit, nvars = FALSE, alpha = 0.5)
plot(fit, xvar = "norm")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.