Skip to contents

Make a sorted data.table of the non-zero coefficients of a logistic or multinomial glmnet model.

Usage

makeCoefDt(fitResult, lambda, decreasing = TRUE, classLevels = NA)

Arguments

fitResult

glmnet object.

lambda

value of lambda for which to obtain coefficients.

decreasing

logical passed to order.

classLevels

order of columns in resulting data.table.

Value

A data.table.