beta_plots: Plots of coefficients by lambda for cv.rq.group.pen and...

View source: R/mainFunctions.R

beta_plotsR Documentation

Plots of coefficients by lambda for cv.rq.group.pen and cv.rq.pen

Description

Warning: this function is no longer exported.

Usage

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

Arguments

model

cv.rq.pen or cv.rq.group.pen object

voi

Index of betas to include. Default is all of them.

logLambda

Plot of lambdas is on the log scale.

loi

Index of lambdas to use, default is all of them.

...

Additional arguments to be sent to plot()

Value

Plot of how beta estimates change with lambda.

Author(s)

Ben Sherwood, ben.sherwood@ku.edu

Examples

## 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)

## End(Not run)

rqPen documentation built on Aug. 25, 2023, 1:07 a.m.