看板 Statistics 關於我們 聯絡資訊
※ 引述《gary70459 (0.0)》之銘言: : 大家好 : 小弟有個問題 : 如果是同一個變項中我想挑出在個別id中出現第一筆的資料才留下這樣的SAS程式應如何寫呢 : id 診斷 : 1 a : 1 a----同一個ID但診斷重複就不要 : 1 b : 2 c : 3 c : 3 c----也是不要 : 3 a : 4 a : 4 a----也是不要 : 5 d : 謝謝 : ------------------------------------------------------------------------ proc sort data=a;by id diag;run; data b;set a;by id diag; if first.diag;run; -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.167.138.169