[R] paired t-Test in R

From: Keizer_71 <christophe.lo_at_gmail.com>
Date: Tue, 04 Mar 2008 07:55:51 -0800 (PST)

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.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 04 Mar 2008 - 15:58:27 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 Tue 04 Mar 2008 - 16:30:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive