jeudi 24 juin 2021

SAS EG Random Sample with variable sample size

I need a stratified random sample that consists in a determined number of addresses. My stratification variable is the zip code. The sample size is already pre-determined and has different number of observations per zip code. How can I incorporate the desired number ob observations per zip code? Is it possible to do this with PROC SURVEYSELECT? I have the sample size in an external file.

Example:
ZIP CODE NUMBER_OBSERVATIONS
9999 10
8888 15
7777 10
6666 5

Is it possible? How can I do this? Thanks




Aucun commentaire:

Enregistrer un commentaire