coef_error: Helper function for error handling This function was adapted...

Description Usage Arguments Details Value

View source: R/coef_error.R

Description

Helper function for error handling This function was adapted from Martin Fahrenberger's sflST package (https://github.com/Martin-Fahrenberger/sflST)

Usage

1
coef_error(lasso, lambda)

Arguments

lasso

lasso model object you want to evaluate

lambda

lambda value at which you are trying to evaluate

Details

This function catches errors due to truncation of the lasso solution path and returns output for the best available lambda

Value

returns the nearest possible evaluation to your lambda


tmirus/TTT documentation built on April 17, 2021, 11:04 p.m.