Description Usage Arguments Value Note Author(s) Examples
Plots either the traces of the coefficients, the penalty of the coefficient groups, or the penalty terms of the whole model obtained by lasso regression as functions of the penalty weight lambda.
1 2 3 4 5 6 |
x |
object of class 'lassogrp' containing the results of fitting a model by lasso. |
type |
character string defining the type of results to be plotted:
|
cv |
results of cross validation (see |
se |
logical: Should the cross validation standard error band be plotted? |
col, lty, lwd |
colors and line types and widths for the curves.
If
|
mar |
plot margins |
axes |
plot axes? |
frame.plot |
draw ‘frame’ around plot? |
xlim |
limits ( |
ylim |
limits of the vertical plotting axis.
Defaults to the range of the values to be plotted except for the
values for lambda==0 (if these are contained in |
legend |
logical: should a legend be displayed? |
main, xlab, ylab |
main title and axis labels of the plot |
... |
further arguments passed to |
none
For models other than ordinary regression, the cross validation results are not yet treated in a sensible way.
Werner A. Stahel, ETH Zurich, stahel@stat.math.ethz.ch
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.