[R] Help on T test

2005-07-26 Thread mark salsburg
ok I created a matrix C with 

A   B  CA1   B1C1
..
.

the columns contain the gene expression values..

I ran the following t.test:

apply(C, 1, function(x) t.test( x[1:3], x[4,6] )$p.value )

which outputs out 16063 pvalues (the number of rows)

I just want to output 3 pvalues showing if A's column is different from A1 etc..

any help would be great.. thank you..

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Help on T test

2005-07-26 Thread Adaikalavan Ramasamy
Mark,

Please do not post the same question to both R-help and BioC-help
mailing lists because 1) there are many people who are on both lists and
2) people's replies will be archived in two different places making it
harder to others to search in future.

Please see the responses on BioC-help list.

Regards, Adai


On Tue, 2005-07-26 at 15:28 -0400, mark salsburg wrote:
 ok I created a matrix C with 
 
 A   B  CA1   B1C1
 ..
 .
 
 the columns contain the gene expression values..
 
 I ran the following t.test:
 
 apply(C, 1, function(x) t.test( x[1:3], x[4,6] )$p.value )
 
 which outputs out 16063 pvalues (the number of rows)
 
 I just want to output 3 pvalues showing if A's column is different from A1 
 etc..
 
 any help would be great.. thank you..
 
 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html