R/prepzscore1.R

prepzscore1 <-
function (common.gene, geno.files, surv.data,x,y)
{
	fLst = vector("list", length(x))
	m = NULL
	surv = censor = NULL

	for (i in union(x,y)){
		phyno = comb.surv.censor(geno.files,c(i),surv.data)
		lst = excl.missing(get(geno.files[i]),phyno)

		surv = c(surv, lst$phyno$surv)
		censor = c(censor, lst$phyno$censor)

		fLst[[i]] = znorm(lst$mat[,common.gene])
	
		m = rbind(m, fLst[[i]])
		if (i == x[length(x)]) train.ind = 1:nrow(m)
	}
	phyno = list(surv = surv, censor = censor)

        return(list(mat = m, phyno = phyno, train.ind = train.ind))
}

Try the survJamda package in your browser

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

survJamda documentation built on May 1, 2019, 8:50 p.m.