data temp;
input id x;
datalines;
1 4
1 2
1 3
2 3
2 4
2 5
2 4
3 5
3 8
;
run;
proc iml;
use temp;
do i=1 to 3;
read all var{id x} where (id=i);
new_data=new_data //(i||x[:]);
end;
create new from new_data [colname={'id','mean'}];
append from new_data;
quit;
proc print data=new noobs;
run;


雷达卡
京公网安备 11010802022788号







