R/excl.missing.single.indep.R

excl.missing.single.indep <-
function(geno.files,ind,surv.data, common.gene)
{

	mat = get(geno.files[ind])[,common.gene]
	phyno = comb.surv.censor(geno.files,c(ind),surv.data)

	mat = mat[!is.na(phyno$surv),]

	phyno$censor = phyno$censor[!is.na(phyno$surv)]
	phyno$surv = phyno$surv[!is.na(phyno$surv)]

	return(list(mat = mat, phyno = phyno))
}

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.