[R] Should help of estimate in t.test be corrected?

Samuel Granjeaud IR/Inserm @@mue|@gr@nje@ud @end|ng |rom |n@erm@|r
Sun Apr 2 23:39:13 CEST 2023


Hi,

Not important, but IMHO the estimate component of the t.test holds an 
estimate of mean of each group, never a difference. The doc says 
"estimate    the estimated mean or difference in means depending on 
whether it was a one-sample test or a two-sample test."

 > t.test(0:4)$estimate
mean of x
         2
 > t.test(0:4, 5:9)$estimate
mean of x mean of y
         2         7

Best,
Samuel



More information about the R-help mailing list