[問題] SAS資料處理

看板Statistics作者 (a15321)時間15年前 (2009/02/24 01:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串12/19 (看更多)
請教各位前輩,我有一組資料 group type 其他變數... 100 A 100 B 101 A 101 A 101 B 101 B 102 A 103 B 104 A 104 A group有上萬組,type只有兩種, 我想把資料整理成只剩下,「同一個group同時有A與B兩種type」的group 也就是上面的data能整理成留下 group type 100 A 100 B 101 A 101 A 101 B 101 B 我目前想到的作法是 先以group排序,然後用 if First.group and Last.group then delete; 就能刪除只有一組資料的group。 但剩下 同一個group裡數組資料都是A type或都是B type的部份 就不知道怎麼抓出來刪除了... 可否請板上前輩們給點提示 感謝! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ※ 編輯: a15321 來自: 118.165.161.116 (02/24 01:35)
文章代碼(AID): #19ejthKL (Statistics)
討論串 (同標題文章)
文章代碼(AID): #19ejthKL (Statistics)