Hey all,
I'm trying to create basic proc freq 2-way tables that include row and column percent's. The output includes these, however they are not labelled which means manually including row and column percent labels for every table I make. Is there a way using proc templates or something to set labels on so that frequency, row, and col % will be labeled whenever I make a table? I've included the output I want and the output type I'm currently getting (without freq, row or col labels)
Thanks
Why not try PROC TABULATE ?
proc tabulate data=sashelp.heart;
class status sex;
table status=' '*(n rowpctn colpctn) ,sex all='Total';
keylabel n='Frequency' rowpctn='Row Pct' colpctn='Col Pct';
run;
Hello,
I thought it was related to the template used (or not used).
If it's solved indeed, it's better to mark this as solved.
That way people are not needlessly opening up this topic anymore in an attempt to give an answer.
Thanks,
Koen
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.