R/est.sd.ctrl.R

"est.sd.ctrl" <-
function(sample.ctrl, nrep)
{

ngenes <- dim(sample.ctrl)[1]
nrep <- nrep[nrep <= dim(sample.ctrl)[2]]

est.sd <- matrix(0, ngenes, length(nrep));

  for ( j in 1:length(nrep))
   {
   est.sd[,j] <- sd(t(sample.ctrl[,1:nrep[j]]))
   colnames(est.sd) <- as.character(nrep)
   est.sd
   } # end of for j

}
warnes/exp.ssize documentation built on May 28, 2017, 12:58 a.m.