Hi experts,
I'm trying to align my analysis in a particular format but my code won't work.
I need your suggestion to align in the given format. Kindly go through the below sample.
data have;
input age$5. Grp$ arg$;
cards;
18-25 G a
18-25 G b
18-25 O c
18-25 P a
18-25 G c
26-35 P b
26-35 G a
26-35 G a
;
proc tabulate data = have;
class age Grp arg;
tables age*Grp, arg;
run;
The result shares the perfect OP values but I required it in the right side displayed tabular format.
Please help me to rearrange the table. I tried a lot but nothing works well.
Thanks in advance!
Sounds like you want
tables age, arg*grp*N ;
You can use
keylabel n=' ';
to suppress the adding of the N label to the report.
Sounds like you want
tables age, arg*grp*N ;
You can use
keylabel n=' ';
to suppress the adding of the N label to the report.
Thank you so much, Buddy! You made my day @Tom
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.