I have the following example data: data one;
input Unit_ID weight @@;
datalines;
1 237.18 2 567.89 3 118.50 4 74.38 5 1287.23 6 258.10
7 325.36 8 218.38 9 1670.80 10 134.71 11 2020.70 12 47.80
13 1183.45 14 330.54 15 780.10 16 895.80 17 620.10 18 420.18
19 979.66 20 810.25 21 670.85 22 314.58 23 87.50 24 1893.40
25 753.30 26 540.65 27 2580.35 28 230.56 29 185.60 30 688.43
31 505.14 32 205.48 33 650.42 34 1348.34 35 30.50 36 2214.80
37 940.35 38 217.85 39 142.90 40 806.90 41 560.72
; Now I want to select 12 records based on the weight variable. So, a higher weight should result in a higher probability that this record ends up in my sample. Once a record is selected, that record should not be selected again. I've looked into proc surveyselect but I'm unable to figure out if this is the right proc to use, and if applicable, how to use it. Can anyone help me with this? I would like to use a standard proc that is available in SAS. Thanks in advance. Regards, Berry
... View more