*type in your uin after the equals sign in the line below;; %let youruin=661947537; %let mu=%substr(&youruin,8,2); *type in your name for the dataset name;; data yournamehere; s=sqrt(&mu); do i=1 to 100; x1=ranuni(&youruin+i); x2=&mu+s*rannorm(&youruin-i); c1=ranuni(&youruin+1000*i); output; end; run; data yournamehere; set yournamehere; if c1 <=.4 then group='A';else if .4<c1<.8 then group='B'; run;
... View more