Basically I followed by ‘版主’s instructions. I may not throughly understand your logic here; in my point of view, it may be just a stratified random sampling with replacement in a rate of 100%.
- proc sort out = Original; by co; run;
- proc surveyselect data=Original method=urs samprate = 1
- seed=11 out=SampleStrata;
- strata co;
- run;
- data boots;
- set SampleStrata;
- do _n_ = 1 to NumberHits by 1;
- output;
- end;
- drop NumberHits ExpectedHits SamplingWeight;
- run;


雷达卡

京公网安备 11010802022788号







