@canolden wrote: That is highly variable. There are 48 levels for the class variable, which t-test doesn't handle. The number of male counts and female counts is different for each level, varying from above 6 counts to hundreds for each sex within level.
My mistake, the code ought to look like this:
proc ttest data=have;
by cat1;
class sex;
var count;
run;
but probably @PGStats has a better solution.
... View more