Why does ttest not display the complete value labels of groups? The labels are short (9 characters) but contain a space character. Here the results comparing the output of ttest and oneway:
Please ignore the issue whether ttest (or oneway) is the optimal procedure to compare average durations.
Code:
. ttest minutes if completed, by(us_version) Two-sample t test with equal variances ------------------------------------------------------------------------------ Group | Obs Mean Std. err. Std. dev. [95% conf. interval] ---------+-------------------------------------------------------------------- version | 2,047 11.24085 .1676527 7.585244 10.91207 11.56964 version | 2,045 10.03937 .144189 6.520469 9.756593 10.32214 ---------+-------------------------------------------------------------------- Combined | 4,092 10.6404 .1109572 7.097792 10.42287 10.85794 ---------+-------------------------------------------------------------------- diff | 1.201489 .2211449 .7679245 1.635053 ------------------------------------------------------------------------------ diff = mean(version) - mean(version) t = 5.4330 H0: diff = 0 Degrees of freedom = 4090 Ha: diff < 0 Ha: diff != 0 Ha: diff > 0 Pr(T < t) = 1.0000 Pr(|T| > |t|) = 0.0000 Pr(T > t) = 0.0000 . oneway minutes us_version if completed, tab questionnai | Summary of duration total re part | Mean Std. dev. Freq. ------------+------------------------------------ version A | 11.24 7.59 2,047 version B | 10.04 6.52 2,045 ------------+------------------------------------ Total | 10.64 7.10 4,092 Analysis of variance Source SS df MS F Prob > F ------------------------------------------------------------------------ Between groups 1476.77766 1 1476.77766 29.52 0.0000 Within groups 204622.261 4090 50.0298926 ------------------------------------------------------------------------ Total 206099.038 4091 50.3786454 Bartlett's equal-variances test: chi2(1) = 46.5968 Prob>chi2 = 0.000
Comment