dfCompile.cv.glmnet: Create visualization matrix for a cv.glmnet object

Description Usage Arguments Details Value See Also Examples

View source: R/glmnet.R

Description

Create visualization matrix for a cv.glmnet object

Usage

1

Arguments

x

cv.glmnet object from library 'glmnet'

Details

data frame returned has the following columns:

.log.lambda

the log of the values of lambda used in the fit

cross.validated.error

error accumulated over across k folds of the cross validation for each .log.lambda

cross.validation.upper.error

cross.validation.error plus an estimate of the standard error of the cross.validation.error relative to the K-fold CV

cross.validation.lower.error

cross.validation.error minus an estimate of the standard error of the cross.validation.error relative to the K-fold CV

number.non.zero

number of non-zero coeffiecients at each .log.lambda

Value

data frame, see details.

See Also

broom's tidy and use with the same object.

Examples

1
2
3
4
5
6
library(tidyverse)
library(glmnet)
cv.glmnet.object <- cv.glmnet(y = iris$Sepal.Length,
                              x = model.matrix(Sepal.Length~., data = iris))

dfCompile.cv.glmnet(cv.glmnet.object) %>% head

benjaminleroy/ggDiagnose documentation built on May 4, 2019, 3:07 a.m.