Plots of Cross-validation results

Description

Slightly misnamed as user could choose BIC as a criteria for "cv.rq.pen" object. Function is able to discern between the two types of evaluation criteria and provides appropriate labels for the plot.

Usage

1
cv_plots(model,logLambda=TRUE,loi=NULL,...)

Arguments

model

"cv.rq.pen" object.

logLambda

Plot of lambdas is on the log scale.

loi

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

...

Additional items to be sent to plot function.

Value

Plot of how cross validation statistic changes 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)
cv_plot <- cv_plots(lassoModels)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.