Plots of Betas

Share:

Description

Plots how the beta estimates changes with the different values of lambda.

Usage

1
beta_plots(model,voi=NULL,logLambda=TRUE,loi=NULL,...)

Arguments

model

"cv.rq.pen" object.

voi

Index of betas to include. Default is all of the lambdas from "cv.rq.pen" object.

logLambda

Plot of lambdas is on the log scale.

loi

Index of lambdas to include. Default is all of the lambdas from "cv.rq.pen" object.

...

Additional arguments to be sent to plot.

Value

Plot of how beta estimates change with lambda.

Author(s)

Ben Sherwood

Examples

1
2
3
4
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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.