I would like to test Fisher’s (sharp) null hypothesis of no treatment effect on these 12 subjects. I want the potential outcomes under the null. I need a way to generate all combination of these 12 subjects placed in 2 groups of equal size (6 each). The data has to be output in a form that I can perform a test on each assignment.
I tried PROC PLAN combination function but I only got the 12:C:6 (924 outcomes) for the treatment group. I did not know how to put the remaining outcomes into the control group. I am not familiar with macros in SAS.
If you are looking get a permutation-adjusted t-test, you can use PROC MULTTEST which will do the permutations internally for you and give you a permutation-adjusted p-value computed from the p-values of all the permutations. For example: