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; img s.jpg
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
It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.
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.