Using predict or methods that call predict (e.g., dependence) on "beset" "elnet" models fit to a binomial response returns erroneous values as if the response were Gaussian. Traces back to calling glmnet::predict.glmnet to generate predictions whereas glmnet package uses a separate function, predict.lognet, for logistic models. (When the binomial family is used, the glmnet function returns an object of class "lognet" rather than just class "glmnet".)
Using
predict
or methods that callpredict
(e.g.,dependence
) on "beset" "elnet" models fit to a binomial response returns erroneous values as if the response were Gaussian. Traces back to callingglmnet::predict.glmnet
to generate predictions whereasglmnet
package uses a separate function,predict.lognet
, for logistic models. (When the binomial family is used, theglmnet
function returns an object of class "lognet" rather than just class "glmnet".)