You could do the following:
y <- apply(dat,1,function(a) t.test(a[1:10],a[11:30])$p.value)
This will produce an array of 2 p-values.
--- On Fri, 14/8/09, Gina Liao wrote:
> From: Gina Liao
> Subject: [R] problem about t test
> To: r-h...@stat.math.ethz.ch
> Received: Fr
Hello,
I have a data frame >str(dat)'data.frame': 2 obs. of 30 variables
it contains two information-two types of cancers:stage A(A1 to A10) and stage
B(B1 to B20) ##totally 30 patients-2 sets of gene expression
I'd like to find the lists for top 20 differentially expressed genes using
2 matches
Mail list logo