R/predict.sublasso.R

Defines functions predict.sublasso

Documented in predict.sublasso

predict.sublasso<-function(object, xpred, type, s, ...){
 if (missing(type)) {type="class"}
 if (missing(s))    {s=object$lambda}
 predy=predict(object$fit,t(xpred),s=s,type=type)
 return(list(predy=predy))
}

Try the SubLasso package in your browser

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

SubLasso documentation built on May 29, 2017, 8:45 p.m.