BookmarkSubscribeRSS Feed

[SAS 프로그래밍 고수 백승민] Proc tabulate 테이블 셀 percents에 %부호 붙이기

Started ‎06-11-2020 by
Modified ‎06-12-2020 by
Views 78

* 출처 : http://support.sas.com/kb/38/001.html

proc format;                           

   picture mypct low-high='000,009%';   

run;

proc tabulate data=sashelp.class;

   class name sex;

   var weight height;

   table name, sex*(weight height)*(pctsum*f=mypct.);

run;

  

 

  Sex
F M
Weight Height Weight Height
PctSum PctSum PctSum PctSum
Name . . 5% 5%
Alfred
Alice 4% 4% . .
Barbara 5% 5% . .
Carol 5% 5% . .
Henry . . 5% 5%
James . . 4% 4%
Jane 4% 5% . .
Janet 5% 5% . .
Jeffrey . . 4% 5%
John . . 5% 4%
Joyce 2% 4% . .
Judy 4% 5% . .
Louise 4% 4% . .
Mary 5% 5% . .
Philip . . 7% 6%
Robert . . 6% 5%
Ronald . . 6% 5%
Thomas . . 4% 4%
William . . 5% 5%
Version history
Last update:
‎06-12-2020 01:08 AM
Updated by:
Contributors

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

Article Labels
Article Tags