Median polish to consolidate quantitations
See: http://www.stat.berkeley.edu/users/terry/Classes/s246.2006/Week9/Wk9L2.pdf
Code:
finalans<-data.frame() for (subs in unique(final$V13)) { m<-medpolish(final[which(final$V13==subs),c(3,7)],trace.iter=FALSE); msd<-medpolish(final[which(final$V13==subs),c(4,8)],trace.iter=FALSE); myadd<-data.frame(gene=I(subs),cntmean=m$col[1]+m$overall,mutmean=m$col[2]+m$overall,cntsd=msd$col[1]+msd$overall, mutsd=msd$col[2]+msd$overall) finalans<-rbind(finalans,myadd) }
Welcome to the University Wiki Service! Please use your IID (yourEID@eid.utexas.edu) when prompted for your email address during login or click here to enter your EID. If you are experiencing any issues loading content on pages, please try these steps to clear your browser cache.