I need to compute the same stats grouped by several different variables. The code below produces exactly what I need for one variable but I'd like to add a groupvar2 with results appended at the bottom. I haven't been able to find anything, and I'm trying to avoid Proc Tabulate. Any ideas???
proc report data=data1 nowd;
column groupvar1 PL,(n pct) Score_,median;
define groupvar1 / group;
define PL / across format=$plfmt.;
define Score_ / analysis;
run;
If you are going to do something like calculations with the column values then tabulate isn't the answer. But if that is not the case what is the problem with using tabulate? Multiple nestings is a tabulate strength.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.