R/bga.suppl.R

"bga.suppl" <-
function(dataset, supdata, classvec, supvec=NULL, suponly=FALSE, type="coa", ...){
        # Runs bga and suppl. Calculates assignments of test samples. Requires test and training dataset
	data.bga<-bga(dataset,classvec, type=type)
        suppl.res<-suppl(data.bga, supdata, supvec,...)
        if(!suponly) {
           data.bga$suppl<-suppl.res
           out<-data.bga }
        if(suponly) out=suppl.res
        return(out)
       }

Try the made4 package in your browser

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

made4 documentation built on Nov. 8, 2020, 6:49 p.m.