R/predict.mrelnet.R

Defines functions predict.mrelnet

Documented in predict.mrelnet

#' @method predict mrelnet
#' @export
predict.mrelnet=function(object, newx, s = NULL, type = c("link", "response",
                                      "coefficients", "nonzero"), exact = FALSE, newoffset, ...)
  {
  type=match.arg(type)
  if(type=="response")type="link"
  object$grouped=TRUE
   predict.multnet(object,newx,s,type,exact,newoffset,...)
}

Try the glmnet package in your browser

Any scripts or data that you put into this service are public.

glmnet documentation built on Aug. 22, 2023, 9:12 a.m.