[R] paired t-Test in R

Keizer_71 christophe.lo at gmail.com
Tue Mar 4 16:55:51 CET 2008




Keizer_71 wrote:
> 
> 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 
> 
> Example of the table in excel
> 
>          sample_drug   sample_control    sample_drug   
> sample_control........etc
> 1          .567                 .321                   .674           
> .311                  
> 
> 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 test for each row 
> 
> 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-tp15824910p15830343.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list