NOTE that if Sample design file contains 0 for sampling rate of cells 6 and 8 these cells will not be in the output dataset. I see 2 options: 1. Reset variable values, like I did for Spring segmentation but for ALL relevant sampling vars, in a separate data step. 2. Rejoin these records into the final file in a separate data step.
MY QUESTION IS: Is there a 3rd option? Is there a way to indicate that I am NOT sampling from cells 6 and 8 and yet want all records from cells 6 and 8 to be included in the ouput dataset?
[I am using EG 7.1x connecting to an AIX 64 unix server with SAS 9.4 installed and SAS STAT v.??? (installed at same time as SAS 9.4)]
This may in fact be a good "work-around" solution,
I would think that the "better" "work-around solution" would be to allow for the exclusion of strata with no sample selected in the PROC SURVEYSELECT output dataset and then merge these records back in. Just as many steps -- but no danger of misleading values for sample-weights and selection probabilities in the final dataset.
However, I was hoping for a "real" solution that requires neither "gerrymandering" the data with an additional data step or having to merge unsampled strata back in. I guess maybe I will just have to go away singing "You can't always get what you want."
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.