Hi,
Thank you for this solution.
However, it seems cumbersome. i. e., having to run dozens of Proc ttest’s (recall that I have 12 groups, so each one against all others will be very many tests…), save the P values and then import the values to another procedure for the adjustment, which I fully agree is needed. Is there a way that Proc ttest (or maybe another Procedure?) can do the tests for all pairs (something like how ANOVA or GLM does the multiple comparison of group means) by each group, and can save the P values in a file with the pairs of groups?
Regarding saving the P values, I can’t find an output statement in Proc ttest that allows to save those values. How do I do that, for a situation like this, where there will be many comparisons and results?
I also tried using the WHERE statement but ran into problems. Exactly where in the Proc ttest code should that statement be located? The CLASS variable must only have two levels, so I tried with the WHERE statement before or after the CLASS statement and it did not work. e.g.,
proc ttest data = stat;
class area;
where area = "aaa" and "bbb";
var res;
run;
Would you have any other suggestions for how to do this?
Best regards
... View more