Returns the value for the penalized portion of the penalized objective function.
get_coef_pen(coefs,lambda,intercept,penVars,penalty="LASSO")
Coefficients to be transformed.
The penalty tuning parameter.
If the intercept is part of the coefficients.
Variables that were penalized.
The penalty function used.
Ben Sherwood