title: SAS - Survey Select - Selecting Different Sample Size per Stratum
body: <p>I have a list of financial advisors and I need to pull 4 samples per advisor but catch is in those 4 samples I need to force 2 mortgages, 1 loan, 1 credit card lets say.</p>
  
  <p>Is there a way in the Survey select statement to set the specific number of samples to pull per stratum? I know you can stratify on 1 category and set it as a equal number. I was hoping I could use a mapping of employee names + the number of samples left to pull for each category and have survey select utilize that to pull in a dynamic way. </p>
  
  <p>I'm using this as an example but this only stratifies on employee first and gives me 4 per employee. I would need to further stratify on Product type and set that to a specific sample size per product.</p>
  
  <pre><code>proc surveyselect data=work.Emp_Table_Final
     method=srs n=4 out=work.testsample SELECTALL;
     strata Employee_No;
  run;
  </code></pre>
  
  <p>Thanks i know it might sound complicated, but if i know its possible then i can google the rest</p>