[問題] SAS 資料處理方面

看板Statistics作者 (咕嚕咕嚕~)時間17年前 (2008/07/30 18:30), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/6 (看更多)
請問如果有一個 data set 如下: id type P1070 A13 P1086 B22 P1092 A13 P1100 C45 P1253 D11 P1284 D11 . . . . . . (資料筆數很多) 如何把相同 type 卻不同 id 的人output 如: id type P1070 A13 P1092 A13 P1253 D11 P1284 D11 因為 type 類型有很多且都是編碼,沒辦法直接用 if type='A13'; 所以有可能在不知道 type 為何的情況下,找到相同 type 卻不同 id 的人嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.132.66.226

07/30 18:46, , 1F
proc sort ; by type;
07/30 18:46, 1F

07/30 20:22, , 2F
阿!!我敘述有誤,不過還是很感謝k大的幫忙^^
07/30 20:22, 2F
文章代碼(AID): #18a4BRmy (Statistics)
文章代碼(AID): #18a4BRmy (Statistics)