[R] paired or one-sample t-Test

Keizer_71 christophe.lo at gmail.com
Tue Mar 4 12:05:11 CET 2008


Hi Guys,

I am having a real hard time trying to figure out for microarry.

Here is my code

One-Sample t-Test

dim(data.sub)
[1] 10000   140 ##there are 10000 probesets and 140 columns 

hist(data.sub) ## Histogram. Identify if the probesets are normal
distributed
q<-rnorm(10000) ##generate 10000 random, normal distributed values
qqplot(data.sub,q)) ##Show the plot of the probeset
qqline(data.sub,q) ##Show the line going through the plot
t.test(data.sub,mu=0) ## One Sample t-test: identify any significant in the
probeset

When i plot and use histogram, it is showing a nice normal distribution.

What i want to do is to use classical paired or one-sample test for each row
(10000 rows)

what is the best way to do this?

thanks,
kei
-- 
View this message in context: http://www.nabble.com/paired-or-one-sample-t-Test-tp15824910p15824910.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list