[R] How to test for the difference of means in population, please help
alan.wu2007 at gmail.com
Wed Mar 28 05:12:16 CEST 2012
try anova if they have same observe points.
response<-sample (1:20,1600*2, replace= TRUE)
fit <- lm(response~conditions+points,data=obs)
On Mar 27, 3:13 am, ali_protocol <mohammadianalimohammad... at gmail.com>
> Dear all,
> Novice in statistics.
> I have 2 experimental conditions. Each condition has ~400 points as its
> response. Each condition is done in 4 repereats (so I have 2 x 400 x 4
> I want to compare the means of two conditions and test whether they are same
> or not. Which test should I use?
> c = matrix (sample (1:20,1600, replace= TRUE), 400 ,4)
> b = matrix (sample (1:20,1600, replace= TRUE), 400 ,4)
> #means of repeats
> c.mean= apply (c,2, mean)
> b.mean= apply (b,2,mean)
> #mean of experiment
> c.mean.all= mean (c)
> b.mean.all= mean (b)
> View this message in context:http://r.789695.n4.nabble.com/How-to-test-for-the-difference-of-means...
> Sent from the R help mailing list archive at Nabble.com.
> R-h... at r-project.org mailing listhttps://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help