Quantcast

Comparing 2 means. pls help

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Comparing 2 means. pls help

ali_protocol
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?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Comparing 2 means. pls help

Michael Weylandt
You should look up what a t-test is.

Michael

On Mon, Apr 9, 2012 at 2:58 AM, ali_protocol
<[hidden email]> 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.
>
> ______________________________________________
> [hidden email] 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.

______________________________________________
[hidden email] 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.
Loading...