Reputation: 9
Helloo..So am trying to derive combinations of 3 variables from 378 variables on SAS. Any help?
I have tried the below code but no luck:
Proc plan;
Factors Block=8930376 ordered
Variable=2 of 378 comb;
Ods output Plan=Comb_MEV;
Quit;
Upvotes: 0
Views: 413
Reputation: 9109
This is a modified version of the example for ALLCOMBI
data comb;
array i[3];
n=378;
k=3;
i[1]=0;
ncomb=comb(n,k); /* The one extra call goes back */
do j=1 to ncomb+1; /* to the first combination. */
call allcombi(n, k, of i[*]);
output;
end;
run;
proc print data=comb(obs=40);
run;
Upvotes: 4