powered by
Plots how the beta estimates changes with the different values of lambda.
beta_plots(model,voi=NULL,logLambda=TRUE,loi=NULL,...)
"cv.rq.pen" object.
Index of betas to include. Default is all of the lambdas from "cv.rq.pen" object.
Plot of lambdas is on the log scale.
Index of lambdas to include. Default is all of the lambdas from "cv.rq.pen" object.
Additional arguments to be sent to plot.
Plot of how beta estimates change with lambda.
# NOT RUN { set.seed(1) x <- matrix(rnorm(800),nrow=100) y <- 1 + x[,1] - 3*x[,5] + rnorm(100) lassoModels <- cv.rq.pen(x,y) b_plot <- beta_plots(lassoModels) # }
Run the code above in your browser using DataLab