Re: [R] t.test & p-Value

From: Eleni Christodoulou <>
Date: Wed, 05 Mar 2008 14:38:14 +0200

I am sorry, the test is unpaired...But my question remains


On Wed, Mar 5, 2008 at 2:33 PM, Eleni Christodoulou <> wrote:

> Hello list,
> I am trying to apply the paired t.test between diseased and not diseased
> patients to identify genes that are more expressed in the one situation
> under the other. In order to retrieve the genes that are more expressed in
> the positive disease state I do:
> p.values<-c()
> for(i in 1:length(Significant[,1])){
> p.values[i]<-try(t.test(positive[i,],negative[i,],alternative
> ="greater")$p.value)
> }
> which(p.values<0.01)
> where Significant is my matrix of genes and their expression in tumors
> and positive, negative are subsets of thes matrix.
> Whn p<0.01, I reject the null hypothesis and I accept the alternative one,
> that I have greater gene expression in positive than in negative.
> I assume I must be doing sth wrong because the heatmap that I get with the
> genes that pass the filter of p-value is wrong.
> Could anyone help me with this?
> thanks a lot,
> Eleni

        [[alternative HTML version deleted]] mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed 05 Mar 2008 - 12:42:58 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 05 Mar 2008 - 13:30:18 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive