powered by
Plot of how coefficients change with tau.
# S3 method for rq.pen.seq bytau.plot(x, a = NULL, lambda = NULL, lambdaIndex = NULL, vars = NULL, ...)
A plot of coefficient values by tau.
An rq.pen.seq object
The tuning parameter a of interest
The lambda value of interest.
The lambda index of interest. Only specify lambdaIndex or lambda, not both.
Index of the variables to plot with 1 being the intercept, 2 being the first predictor, etc. Default is to include all variables.
Additional parameters sent to coef()
Ben Sherwood, ben.sherwood@ku.edu
set.seed(1) x <- matrix(rnorm(800),nrow=100) y <- 1 + x[,1] - 3*x[,5] + rnorm(100) lassoModels <- rq.pen(x,y,tau=seq(.1,.9,.1)) bytau.plot(lassoModels,lambda=lassoModels$lambda[5])
Run the code above in your browser using DataLab