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
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.