Plotting the LASSO path | R Documentation |
Plotting a LASSO path fitted using penalized
with steps > 1
.
plotpath(object, labelsize = 0.6, standardize = FALSE, ...)
object |
A |
labelsize |
Sets the size of the variable labels in the plot. Set to zero for no variable labels. |
standardize |
If |
... |
Any other arguments will be forwarded to the plot function. |
Jelle Goeman: j.j.goeman@lumc.nl
penalized
, penfit
.
data(nki70) # Fit the model with the steps argument and plot pen <- penalized(Surv(time, event), penalized = nki70[,8:77], data = nki70, lambda1=1, steps = 20) plotpath(pen)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.