BookmarkSubscribeRSS Feed

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

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

* 출처 : 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

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Article Labels
Article Tags