@u58497688 wrote:
Thanks, i just added an output, so I could work with it further. If it helps anyone else:
proc means mean data=have; class ID; var TotalScore; output out=means_totalscore mean=mean_totalscore; run;
Your output data set will have a variable _type_ indicating combinations of the Class variable. The _type_=0 will be the mean for all the ID values. If you do not want that in the output then add NWAY to the Proc statement to select only the highest type which would have the combinations for the class variable(s) and none of the other summaries. This is actually useful behavior but there is a learning curve about the various options controlling the output with class variables. There will also be a _freq_ variable indicating how many observations were used for each statistic.
... View more