leiyudian 发表于 2016-7-16 13:32
“proc print;"与“proc glm data=a”之间加上Ods graphics on;
刚试了下,还是不行,只有print过程的结果,后面依然没结果,下面是我提交的程序:麻烦您再给看看,嘻嘻,对了 ods graphics on 表示什么含义啊?初学者,多多赐教。哈哈
data one;
do group=1 to 2;
input n;
do i=1 to n;
input age x@@;
output;
end;
end;
cards;
12
40 2.3 41 2.1 40 3.1 43 2.5
41 2.6 42 2.1 38 1.9 39 1.8
38 3.2 39 2.8 40 2.7 43 1.8
16
37 1.7 36 1.9 39 1.8 40 2.0
42 2.1 43 2.8 37 2.5 39 2.4
40 2.9 40 1.9 36 1.7 35 1.6
35 1.5 39 1.9 41 2.1 45 2.5
;
proc print;
Ods graphics on;
proc glm data=one;
class group;
model x=age group/solution; /*solution协方差模型*/
ismeans group/stderr pdiff;
run;