I am doing a stratified random selection of 385 bridge based on 2 strata STRUCTURE_KIND_043A OWNER_022 and my data have STRUCTURE_NUMBER_008,STRUCTURE_KIND_043A, OWNER_022. the goal is to select a proportionate sample bridge based on the strata and I want to have the bridge number so I can make an analysis later on. however, with my code, I lost the bridge number somehow and I do not see the 385 bridge samples I was looking for. How do I retrieve it or is there a better way to do the stratified random selection with 2 different sample sizes of the strata?
here is my code
proc sort data=SUP.IDNBI_PSC_FILESTEST
out=SUP.IDNBI_PSCsort;
by STRUCTURE_KIND_043A OWNER_022;
run;
proc surveyselect data=SUP.IDNBI_PSCsort n=385
out=SUP.IDNBI_PSCsamp;
strata STRUCTURE_KIND_043A OWNER_022/ alloc=prop nosample;
run;
here is the result
