data d;
input id name$ price;
cards;
1 A 10
1 A 12
1 A 9
1 A 3
2 B 4
2 B 5
2 B 6
2 B 7
8 C 1
8 C 1
8 C 3
;
run;
TITLE 'PROC MEANS output by default';
PROC MEANS DATA=d ;
OUTPUT OUT=MMout MAX=maxk maxi MIN=mink mini MEAN=meank meani SUM=ssumk ssumi STD=stdk stdi;
VAR price id; /* 處理2個變數 */
by ID;
RUN;
文章標籤
全站熱搜
留言列表