在SAS中创建组合



Hello。。因此,我试图从SAS上的378个变量中推导出3个变量的组合。有什么帮助吗?

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;

这是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;

最新更新