티스토리 뷰

* p.16 Summarizing Groups of Data

<주제> 그룹별로 요약 정리하여 나타내고 싶다.

 

<결과>

 

※ 주의!

  If you specify a GROUP BY clause in a query that does not contain a summary function, our claue is changed to an ORDER BY clause, ad a message to that effectis written to the SAS log.

 요약변수를 나타내지 않았을 때는 ORDER BY 형태로 나타난다. 밑의 경우는 요약변수 sum이 빠진 형태에서 나온 결과로 MemberType의 순서(BRONZE - GOLD - SILVER)의 알파벳 순서대로 정렬되어 나타났다.

 

 

<추가사항>

  * 추가 요약 함수들 : NMISS, PRT, RANGE, STD STDERR, VAR, T

  * R에서는 어떻게 적용될 수 있을까? ddply를 통한 summarize?

 

 

댓글