data fwk;
input dstyle capacities;
cards;
1 44
1 28
1 51
1 40
0 10
0 71
0 54
0 11
0 82
0 34
0 43
0 22
0 13
0 8
1 9
1 70
;
run;
proc ttest;
class dstyle;
var capacities;
run;
得到结果:
The TTEST Procedure
Variable: capacities
dstyle N Mean Std Dev Std Err Minimum Maximum
0 10 34.8000 26.9023 8.5073 8.0000 82.0000
1 6 40.3333 20.6946 8.4485 9.0000 70.0000
Diff (1-2) -5.5333 24.8638 12.8396
dstyle Method Mean 95% CL Mean Std Dev 95% CL Std Dev
0 34.8000 15.5553 54.0447 26.9023 18.5043 49.1131
1 40.3333 18.6157 62.0510 20.6946 12.9177 50.7559
Diff (1-2) Pooled -5.5333 -33.0716 22.0049 24.8638 18.2035 39.2127
Diff (1-2) Satterthwaite -5.5333 -31.4542 20.3875
Method Variances DF t Value Pr > |t|
Pooled Equal 14 -0.43 0.6731
Satterthwaite Unequal 12.908 -0.46 0.6521
Equality of Variances
Method Num DF Den DF F Value Pr > F
Folded F 9 5 1.69 0.5848