01-15-2015 11:13 AM
I have a SAS code as follow:
proc sort data=filein;
proc surveyselect data=filein method=srs sampsize=25
seed=12345 out=fileout ;
This code works fine as long as the strata var1 has enough sample size (25) for each group.
If one group of var1 has size less than 25 then sas generates error and stop.
My purpose is that if one group has size less than 25 then all observations are include in the sampling
for that particular group.
How can we code this kind of logic?
Thanks for your kindly assistance.
Need further help from the community? Please ask a new question.