Source:lec25p8.sas C:\ed\web\be691f\webready 12/3/98 EJS ID=1 NPOP=10 NSAMP=5 PROB=0.5 RN=0.8441597418 ID=2 NPOP=9 NSAMP=5 PROB=0.5555555556 RN=0.438262019 Selected:INSAMP=1 NSAMP=4 NPOP=9 ID=3 NPOP=8 NSAMP=4 PROB=0.5 RN=0.2093170724 Selected:INSAMP=1 NSAMP=3 NPOP=8 ID=4 NPOP=7 NSAMP=3 PROB=0.4285714286 RN=0.0982457558 Selected:INSAMP=1 NSAMP=2 NPOP=7 ID=5 NPOP=6 NSAMP=2 PROB=0.3333333333 RN=0.4278667851 ID=6 NPOP=5 NSAMP=2 PROB=0.4 RN=0.7104498664 ID=7 NPOP=4 NSAMP=2 PROB=0.5 RN=0.4959801284 Selected:INSAMP=1 NSAMP=1 NPOP=4 ID=8 NPOP=3 NSAMP=1 PROB=0.3333333333 RN=0.547572119 ID=9 NPOP=2 NSAMP=1 PROB=0.5 RN=0.4075161113 Selected:INSAMP=1 NSAMP=0 NPOP=2 ID=10 NPOP=1 NSAMP=0 PROB=0 RN=0.796746482 Source:lec25p8.sas C:\ed\web\be691f\webready 12/3/98 EJS Table 8.1 Illustratin of SRS without Replacement with Initial Values for RETAIN set by IF statement with _n_ ID NPOP NSAMP PROB RN INSAMP 2 9 4 0.55556 0.43826 1 3 8 3 0.50000 0.20932 1 4 7 2 0.42857 0.09825 1 7 4 1 0.50000 0.49598 1 9 2 0 0.50000 0.40752 1