Re: [問題] 請問sas資料加總問題
data a;
input age live;
cards;
0 0.2
1 0.3
1 0.1
1 0.8
2 0.45
2 0.7
4 0.9
4 0.1
;
run;
proc means data=a sum; var live; class age;
output out=result sum=sum; run;
要完美一點的話,再加上
data result(keep=age sum); set result;
if _TYPE_=1 then output; run;
就好啦
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.137.44.69
→
06/03 21:52, , 1F
06/03 21:52, 1F
→
06/03 22:30, , 2F
06/03 22:30, 2F
討論串 (同標題文章)
完整討論串 (本文為第 4 之 4 篇):
問題
1
1