data test8_3; /*创建数据集*/
input type x@@;
cards;
1 35.7 1 36.8 1 35.9 1 36.3
2 40.2 2 41.7 2 40.5 2 40.8
3 41.3 3 42.3 3 40.9 3 40.5
4 45.4 4 46.3 4 45.7 4 45.8
5 46.2 5 45.6 5 44.9 5 45.3
6 47.8 6 47.5 6 46.9 6 47.5
7 49.3 7 49.3 7 50.2 7 49.8
;
run;
proc glm data=test8_3; /*单因素的方差分析*/
class type; /*设置因素变量*/
model x=type; /*设置方差分析模型*/
means type /t; /*多重比较设置*/
run;