plot.bolasso: graphical output for a 'bolasso' object

Description Usage Arguments Details See Also Examples

View source: R/plot.R

Description

graphical output for a bolasso object. Plot the frequency of selection of each variable depending on the regularization parameter mu from the "bolasso" object.

Usage

1
2
## S3 method for class 'bolasso'
plot(x,...)

Arguments

x

Object of class "bolasso". As obtained from bolasso.

...

not used.

Details

Plot the frequency of selection of all variables depending on the regularization parameter.

See Also

bolasso, dyadiqueordre

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
x=matrix(rnorm(100*20),100,20)
beta=c(rep(2,5),rep(0,15))
y=x%*%beta+rnorm(100)

# BoLasso
mod=bolasso(x,y,mu=seq(1.5,0.1,-0.1))
plot(mod)

## End(Not run)

Example output

Loading required package: glmnet
Loading required package: Matrix
Loading required package: foreach
Loaded glmnet 2.0-16

Loaded mht 3.1.2 
Thanks for using me.
Don't hesitate to contact my maintainer if you have a request or you encountered problems/bugs. 
intercept has been added

mht documentation built on May 2, 2019, 11:49 a.m.