R/build.dperm.R

Defines functions build.dperm

Documented in build.dperm

build.dperm<-function(X,tmp.samp,type.mt,s0,n.row,le.cl){
	B<-nrow(tmp.samp)
	max.cl<-max(tmp.samp[1,])+1
	d.perm<-matrix(0,n.row,B)
	for(i in 1:B){
		tmp<-.C("get_stat_num_denum", as.double(X), as.integer(n.row), 
        	as.integer(le.cl), as.integer(tmp.samp[i,]), as.double(.mt.naNUM), 
        	t.num = double(n.row), t.denum=double(n.row),as.character(c(type.mt,"abs","y")), 
		as.integer(max.cl), PACKAGE = "multtest")
		d.perm[,i]<-sort(tmp$t.num/(tmp$t.denum+s0),na.last=TRUE)
	}
	d.perm
}	 
 

Try the siggenes package in your browser

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

siggenes documentation built on Nov. 8, 2020, 6:26 p.m.