R/predict.mdr.R

`predict.mdr` <- function(object, data=NULL, status=NULL, fold=NULL,...){
 
 TwoByTwo <- matrix(NA,ncol=2,nrow=2) 
 temp <- mdrEnsemble(object,data=data, new.status=status,fold=fold)
 res <- temp$result
 if(!is.null(status)) TwoByTwo <- table(res,status)
 output <- list(class=res,TwoByTwo=TwoByTwo,cv=temp$cv)
 class(output) <- "mdrPredict"
 output
} 

Try the GeneticTools package in your browser

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

GeneticTools documentation built on Jan. 15, 2017, 11:21 a.m.