Re: [R] simple t test for multiple colimns

2011-09-10 Thread Daniel Malter
It will never hurt your chances to get an answer if you tell what the code in the different language actually does. Is it doing t-est for all of the variables and the group indicators are in a separate column? If, imagine you have the following data: id<-rep(c(1,2),each=100) x<-c(rnorm(100,0,1),rn

Re: [R] simple t test for multiple colimns

2011-09-09 Thread Jean-Christophe BOUËTTÉ
The examples in ?t.test and ?formula will help you. Don't forget "An Introduction to R" too to import your data in a data frame first... 2011/9/9 Mihovil Pletikos : > hi > i am new to r and i would like to how could i do something like this in > spss: > > T-TEST GROUPS=who('1' '2') >  /MISSING=ANA

[R] simple t test for multiple colimns

2011-09-09 Thread Mihovil Pletikos
hi i am new to r and i would like to how could i do something like this in spss: T-TEST GROUPS=who('1' '2') /MISSING=ANALYSIS /VARIABLES= X3881686 X2672712 X2842570 X3526544 X2902531 X2402942 X3382216 X3771800 X2427469 X2392945 X2453006 X2562821 X3416651 X3552083 X3721851 X2477438 X2926969 X3026