R/fitted.glmnetcr.R

Defines functions fitted.glmnetcr

Documented in fitted.glmnetcr

fitted.glmnetcr <-
function(object,newx=NULL,s,...) {
	if (is.null(newx)) {newx<-object$x}
	method <- object$method
	predict.fit<-predict.glmnetcr(object,newx=newx,method=method)
	list(BIC=predict.fit$BIC[s],AIC=predict.fit$AIC[s],class=predict.fit$class[,s],probs=predict.fit$probs[,,s])
}
kelliejarcher/glmnetcr documentation built on June 9, 2025, 9:38 a.m.