Dear Users, I have to perform a permutation test without replacement. Let's say, I have 100 patients, 50 with treatment A and 50 with treatment B. There are too many combination to choose 50 in 100. It is a the code I wrote to show you the data I have. data original_data (drop=i j);
do i=1 to 50;
id=i;
trt='1';
output;
end;
do j=1 to 50;
id=j+50;
trt='2';
output;
end;
run; So What I would like to do, is to generate 1000 unique samples with the 100 patients and the same distribution for treatment, in another word that means no sample was drawn more than one. Do you have any idea to do that ? I am a bit lost, because I can create one data set after another one, and check if the new is different from the other first ones, but I think it is very time consumming ? Thank you for your help ! Mary
... View more