Displaying 1 result from an estimated 1 matches for "equalvar".
2005 Mar 15
4
How to extract x rows to get x pvalues using t.test
Hi all,
 
  My data
genes
     [,1] [,2] [,3] [,4]
[1,]   25   72   23   55
[2,]   34   53   41   33
[3,]   26   43   26   44
[4,]   36   64   64   22
[5,]   47   72   67   34
 stu<-t.test(genes[,1:2],genes[,3:4])
> stu$p.value
[1] 0.4198002
i get 1 pvalue for the entire col1:col2  Vs col3:col4. I am trying to get 5 p values for the 5 rows i have.
I am trying to avoid a for loop coz my