row.ttest.statp | R Documentation |
Performs t-tests for paired data row by row.
row.ttest.statp(mat)
mat |
Matrix with data to be tested (for example, log-ratios in microarray experiments). |
This function is much faster than employing apply with FUN=t.test.
Vector with t-test statistics.
## The function is currently defined as function(mat){ m<-rowMeans(mat,na.rm=TRUE) sd<-rowSds(mat,na.rm=TRUE) tstat<-m/(sd*sqrt(1/dim(mat)[2])) return(tstat)}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.