dajmcdon / rtestim

https://dajmcdon.github.io/rtestim/
Other
4 stars 0 forks source link

Max lambda #17

Closed zcaiElvis closed 1 year ago

zcaiElvis commented 1 year ago

Calculate the largest lambda so that the penalty term is zero, so users don't have to specify a lambda_max.

Similar implementation from glmgen here: https://github.com/glmgen/glmgen/blob/master/c_lib/glmgen/src/tf/tf_maxlam.c