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])
}

Try the glmnetcr package in your browser

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

glmnetcr documentation built on July 8, 2020, 6:21 p.m.