Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plotpath

Plotting the LASSO path


Description

Plotting a LASSO path fitted using penalized with steps > 1.

Usage

plotpath(object, labelsize = 0.6, standardize = FALSE, ...)

Arguments

object

A list of link{penfit} objects calculated for the same data but different lambda1 values. This object can be created using the link{penalized} function using the steps argument.

labelsize

Sets the size of the variable labels in the plot. Set to zero for no variable labels.

standardize

If TRUE, plots the regression coefficients for the covariates standardize to unit second central moment. See penalized for details on standardization. Note that the standardization in plotpath can also be used if standarization was not used in penalized.

...

Any other arguments will be forwarded to the plot function.

Author(s)

Jelle Goeman: j.j.goeman@lumc.nl

See Also

Examples

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)

penalized

L1 (Lasso and Fused Lasso) and L2 (Ridge) Penalized Estimation in GLMs and in the Cox Model

v0.9-51
GPL (>= 2)
Authors
Jelle Goeman, Rosa Meijer, Nimisha Chaturvedi, Matthew Lueder
Initial release
2018-07-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.