tidy_coef.glmnet: tidy_coef.glmnet

View source: R/dCVnet_utilities.R

tidy_coef.glmnetR Documentation

tidy_coef.glmnet

Description

return a dataframe of glmnet coefficients

Usage

tidy_coef.glmnet(mod, s, label = "Coef")

tidy_coef.multialpha.repeated.cv.glmnet(
  mod,
  s = NULL,
  alpha = NULL,
  label = "Coef"
)

Arguments

mod

a fitted glmnet object (alpha is determined by the object)

s

the value of penalty parameter lambda at which predictions are required.

label

an optional label (value is added in column "label")

alpha

specify an alpha, or leave NULL to use the optimal alpha identified by multialpha.repeated.cv.glmnet.

Functions

  • tidy_coef.multialpha.repeated.cv.glmnet(): return a dataframe of coefficients


AndrewLawrence/dCVnet documentation built on Sept. 24, 2024, 5:24 a.m.