[R] Comparing 2 means. pls help

R. Michael Weylandt michael.weylandt at gmail.com
Mon Apr 9 15:40:08 CEST 2012


You should look up what a t-test is.

Michael

On Mon, Apr 9, 2012 at 2:58 AM, ali_protocol
<mohammadianalimohammadian at gmail.com> wrote:
> I am interested in the difference of 2 data:
>
> mat1= c(2.2, 2.3, 2.2,2.5)
> mat2= c(2.6, 2.8, 2.7,2.4)
>
> mat= mat2-mat1
>
> I perform an action on both mat1 and mat2, and I get
> mat1prime and mat2prime:
>
> mat1prime= c(2.5, 2.5, 2.3,2.5)
> mat2prime= c(2.6, 2.8, 2.7,2.6)
>
> matprime= mat2prime-mat1prime
>
>
> I want to check wether mat and matprime have the same mean.
> How should I do this in R?
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Comparing-2-means-pls-help-tp4542237p4542237.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.



More information about the R-help mailing list