Description Usage Arguments Details Value See Also Examples
Create visualization matrix for a cv.glmnet object
1 |
x |
cv.glmnet object from library 'glmnet' |
data frame returned has the following columns:
the log of the values of lambda
used in the fit
error accumulated over across k folds of the
cross validation for each .log.lambda
cross.validation.error
plus an
estimate of the standard error of the cross.validation.error
relative to the K-fold CV
cross.validation.error
minus an
estimate of the standard error of the cross.validation.error
relative to the K-fold CV
number of non-zero coeffiecients at each
.log.lambda
data frame, see details.
broom
's tidy
and use with the
same object.
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.