在adv pre 中读到:
data work.rsubset(drop=obsleft sampsize);
sampsize=10;
obsleft=totobs;
do while(sampsize>0);
pickit+1;
if ranuni(0)
set sasuser.revenue point=pickit
nobs=totobs;
output;
sampsize=sampsize-1;
end;
obsleft=obsleft-1;
end;
stop;
run;
教材说是random sample without replacement.我怎么觉得只是读了dataset中的前10
个sample?因为pickit只取1,2,。。10.
多谢!
x******n 发帖数: 173
2
you are right
【在 a*z 的大作中提到】 : 在adv pre 中读到: : data work.rsubset(drop=obsleft sampsize); : sampsize=10; : obsleft=totobs; : do while(sampsize>0); : pickit+1; : if ranuni(0): set sasuser.revenue point=pickit : nobs=totobs; : output;