I ended up going rather 'manually'. For now it will suffice. data stress; set stress; if Tolerance = 'D' then SampSize= 10; else if Tolerance = 'I' then SampSize= 20; else if Tolerance = 'S' then SampSize= 30; else if Tolerance = 'N' then SampSize= 40; run; proc sort data = stress;by Tolerance;run; proc sql; select distinct SampSize into:SampSize separated by ' ' from Stress; quit; proc surveyselect data=stress method=urs n=(&SampSize.) out=StressSample outhits; strata Tolerance; run; proc freq data = StressSample; tables Tolerance; run;
... View more