plot.droplasso: Plot coefficients from a "droplasso" object

Description Usage Arguments Value Examples

Description

Plot coefficients from a "droplasso" object

Usage

1
2
## S3 method for class 'droplasso'
plot(x, sign.lambda = 1, ...)

Arguments

x

Fitted model of class "survenet"

sign.lambda

Should be sign.lambda = 1 (default) to plot from left to right in increasing values of lambda, sign.lambda = -1 otherwise

...

Other arguments passed to matplot

Value

None

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#create data:
nobs = 100
nvars = 5
x = matrix(rnorm(nobs*nvars),nrow=nobs)
b = c(1,1,0,0,0)
p = 1/(1+exp(-x%*%b))
y = p>0.5
# Fit a dropout lasso model
m <- droplasso(x, y, family="binomial", nlambda=50, decay=5)
# Plot is
plot(m)

jpvert/droplasso documentation built on May 6, 2019, 7:17 a.m.