20 likes | 118 Views
Renu Gehring PDX SUG Chair Health Care Analyst, CareOregon, Inc. SAS Instructor, Ace-Cube, LLP. PDX SAS Users Group Meeting June 2, 2010. Random Sample w/o Replacement. data winners(keep=Name); sampsize =15; obsleft = totobs ; do while ( sampsize >0); pickit+1;
E N D
Renu Gehring PDX SUG Chair Health Care Analyst, CareOregon, Inc. SAS Instructor, Ace-Cube, LLP PDX SUG 2010 PDX SAS Users Group MeetingJune 2, 2010
PDX SUG 2010 Random Sample w/o Replacement data winners(keep=Name); sampsize=15; obsleft=totobs; do while (sampsize>0); pickit+1; if ranuni(10)<sampsize/obsleft then do; set attendees point=pickitnobs=totobs; output; sampsize=sampsize-1; end; obsleft=obsleft-1; end; stop; run;