[R] Independant-samples t-test
    Torsten Hothorn 
    Torsten.Hothorn at rzmail.uni-erlangen.de
       
    Fri Mar 30 10:37:50 CEST 2001
    
    
  
> I can't find a 'group' option in t.test (library ctest).
> 
> (eg. X = normally-distributed rating scale
> Y = sex
> I'd like to compare the means by sex, but can't do t.test(X,group=Y) or
> whatever).
t.test(X[Y == 0], X[Y == 1])
if 0/1 codes sex and both X and Y are vectors of the same length. 
Torsten
> 
> Stuart
> 
> "There goes the happy moron - he doesn't give a damn.
> I wish I were that moron - my God! - perhaps I am!" etc.
> 
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
    
    
More information about the R-help
mailing list