Re: [R] multiple t-tests across similar variable names

2012-10-11 Thread arun
lue))) res3 # meandifference CIlow   CIhigh  p.value #apple    12.6  8.519476 16.68052 0.0010166626 #banana   15.0 12.088040 17.91196 0.0001388506 #orange   18.2 13.604166 22.79583 0.0003888560 I hope this works. A.K. - Original Message - From: "Nund

Re: [R] multiple t-tests across similar variable names

2012-10-11 Thread arun
001388506 #orange          18.2 13.604166 22.79583 0.0003888560 There is difference in signs. A.K. - Original Message - From: Rui Barradas To: arun ; "Nundy, Shantanu" Cc: R help Sent: Thursday, October 11, 2012 9:25 AM Subject: Re: [R] multiple t-tests across similar var

Re: [R] multiple t-tests across similar variable names

2012-10-11 Thread Rui Barradas
. Rui Barradas A.K. - Original Message - From: Rui Barradas To: arun ; "Nundy, Shantanu" Cc: R help Sent: Thursday, October 11, 2012 9:25 AM Subject: Re: [R] multiple t-tests across similar variable names Hello, I have a problem, with your data example my results are di

Re: [R] multiple t-tests across similar variable names

2012-10-11 Thread Rui Barradas
t;. I think this is causing a problem for this line in your code: vmat <- do.call(rbind, strsplit(vars, "_")) Shantanu From: Nundy, Shantanu Sent: Thursday, October 11, 2012 9:07 AM To: Rui Barradas Subject: RE: [R] multiple t-tests across simi

Re: [R] multiple t-tests across similar variable names

2012-10-11 Thread arun
To: arun ; "Nundy, Shantanu" Cc: R help Sent: Thursday, October 11, 2012 9:25 AM Subject: Re: [R] multiple t-tests across similar variable names Hello, I have a problem, with your data example my results are different. I have changed the names of two of the variables, to allow for &#

Re: [R] multiple t-tests across similar variable names

2012-10-11 Thread Rui Barradas
(colnames(dat3),"_"),`[`,1))) res3 # meandifference CIlow CIhigh p.value #apple12.6 8.519476 16.68052 0.0010166626 #banana 15.0 12.088040 17.91196 0.0001388506 #orange 18.2 13.604166 22.79583 0.0003888560 A.K. ----- Original Message ----- Fr

Re: [R] multiple t-tests across similar variable names

2012-10-10 Thread arun
476 16.68052 0.0010166626 #banana   15.0 12.088040 17.91196 0.0001388506 #orange   18.2 13.604166 22.79583 0.0003888560 A.K. - Original Message - From: "Nundy, Shantanu" To: "r-help@r-project.org" Cc: Sent: Wednesday, October 10, 2012 7:09 PM Sub

Re: [R] multiple t-tests across similar variable names

2012-10-10 Thread arun
ot;r-help@r-project.org" Cc: Sent: Wednesday, October 10, 2012 7:09 PM Subject: Re: [R] multiple t-tests across similar variable names Hi everyone- I have a dataset with multiple "pre" and "post" variables I want to compare. The variables are named "apple_pre&quo

Re: [R] multiple t-tests across similar variable names

2012-10-10 Thread arun
sage - From: "Nundy, Shantanu" To: "r-help@r-project.org" Cc: Sent: Wednesday, October 10, 2012 7:09 PM Subject: Re: [R] multiple t-tests across similar variable names Hi everyone- I have a dataset with multiple "pre" and "post" variables I want to co

Re: [R] multiple t-tests across similar variable names

2012-10-10 Thread Rui Barradas
Hello, Could you post a data example? Using, with data.frame named 'dat' dput( head(dat, 30) ) # paste the output of this in a post I have written code that creates pairs pre/post columns but it can't really be tested. Hope this helps, Rui Barradas Em 11-10-2012 00:09, Nundy, Shantanu escr

Re: [R] multiple t-tests across similar variable names

2012-10-10 Thread Nundy, Shantanu
Hi everyone- I have a dataset with multiple "pre" and "post" variables I want to compare. The variables are named "apple_pre" or "pre_banana" with the corresponding post variables named "apple_post" or "post_banana". The variables are in no particular order. apple_pre orange_pre orange_post pr