I want to randomly select MD, also weighted by Volume, giving high volume ones a higher chance to be selected.
I know there is a SIZE statement I can use as weighting function, but this statement can't be used for Simple Random Selection.
I wonder if anyone can tell me what other options I can use.
You have to add METHOD=PPS to the PROC SURVEYSELECT statement. PPS is the equivalent of simple random with weights. And use the SIZE statement.
PROC SURVEYSELECT DATA=in
SIZE volume ;