Re: [問題] 請問sas資料加總問題

看板Statistics作者 (Mon_tresor)時間16年前 (2009/06/03 21:13), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/4 (看更多)
剛剛嘗試寫了一下, 有錯請指正~~ 如果有更快的方法, 請告訴我吧 ^^ 謝謝 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 sort data=a; by age; data b; set a; by age; if first.age=1 then c=.; c+live; if last.age=1; proc print; run; -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 219.86.133.37

06/03 22:30, , 1F
謝謝
06/03 22:30, 1F
文章代碼(AID): #1A9dSIDf (Statistics)
文章代碼(AID): #1A9dSIDf (Statistics)