R/aggregateDSC.R

Defines functions aggregateDSC

Documented in aggregateDSC

aggregateDSC=function(modlist){
 mt=0;
 for(j in 1:length(modlist)){
  mt=mt+modlist[[j]]$predictions
 }
 t(apply(mt,1,function(x){x/sum(x)}))
}

Try the maPredictDSC package in your browser

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

maPredictDSC documentation built on Nov. 8, 2020, 5:11 p.m.