<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to use PROC SURVEYSELECT with Sampling Constraint in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-SURVEYSELECT-with-Sampling-Constraint/m-p/427119#M22435</link>
    <description>&lt;P&gt;Hello everyone, my question is similar to this one below but with one difference: the constraint affects the random sample &lt;A href="https://communities.sas.com/t5/SAS-Procedures/PROC-SURVEYSELECT-with-Constraints/td-p/51235" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/PROC-SURVEYSELECT-with-Constraints/td-p/51235&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sel_1&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for Sel_2, I would like to randomly select 1-4 with 2 chosen twice such that Sel_1 NE Sel_2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sel_1&amp;nbsp;&amp;nbsp; Sel_2 (acceptable since none match)&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;2 &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;4 &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;2 &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to conduct this? Using the where statement doesn't make sense as the where statement requires an actual variable in the dataset and it can limit the size of the resulting sampling. If not, I was considering some sort of recursive method by changing the seed number until that condition is met. Anything helps and thank you so much for reading.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: The main result desired is that the new variable (Sel_2) follows two constraints&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Sel_2 does not match Sel_1 in the same observation&lt;/P&gt;&lt;P&gt;2. The number of the groups (in the previous example, 1-4) is controlled through a column. (This should also be followed by Sel_1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.e. 1 shows up once, 2 shows up twice, 3-4 show up once for Sel_1 and Sel_2 while following the first constraint&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jan 2018 17:28:14 GMT</pubDate>
    <dc:creator>Learning_S</dc:creator>
    <dc:date>2018-01-15T17:28:14Z</dc:date>
    <item>
      <title>How to use PROC SURVEYSELECT with Sampling Constraint</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-SURVEYSELECT-with-Sampling-Constraint/m-p/427119#M22435</link>
      <description>&lt;P&gt;Hello everyone, my question is similar to this one below but with one difference: the constraint affects the random sample &lt;A href="https://communities.sas.com/t5/SAS-Procedures/PROC-SURVEYSELECT-with-Constraints/td-p/51235" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/PROC-SURVEYSELECT-with-Constraints/td-p/51235&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sel_1&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for Sel_2, I would like to randomly select 1-4 with 2 chosen twice such that Sel_1 NE Sel_2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sel_1&amp;nbsp;&amp;nbsp; Sel_2 (acceptable since none match)&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;2 &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;4 &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;2 &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to conduct this? Using the where statement doesn't make sense as the where statement requires an actual variable in the dataset and it can limit the size of the resulting sampling. If not, I was considering some sort of recursive method by changing the seed number until that condition is met. Anything helps and thank you so much for reading.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: The main result desired is that the new variable (Sel_2) follows two constraints&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Sel_2 does not match Sel_1 in the same observation&lt;/P&gt;&lt;P&gt;2. The number of the groups (in the previous example, 1-4) is controlled through a column. (This should also be followed by Sel_1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.e. 1 shows up once, 2 shows up twice, 3-4 show up once for Sel_1 and Sel_2 while following the first constraint&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 17:28:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-SURVEYSELECT-with-Sampling-Constraint/m-p/427119#M22435</guid>
      <dc:creator>Learning_S</dc:creator>
      <dc:date>2018-01-15T17:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PROC SURVEYSELECT with Sampling Constraint</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-SURVEYSELECT-with-Sampling-Constraint/m-p/427120#M22436</link>
      <description>&lt;P&gt;EDIT: Ignore as the post was edited.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;Resending the example since the formatting was not followed:&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;&amp;nbsp;&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;Example&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;&amp;nbsp;&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;Selection_1&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;3&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;2&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;4&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;1&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;2&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;&amp;nbsp;&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;So for Selection_2, I would like to randomly select 1-4 with 2 chosen twice such that Selection_1 NE Selection_2&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;Selection_1 Selection_2 (acceptable since none match)&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;4 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/STRIKE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 19:54:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-SURVEYSELECT-with-Sampling-Constraint/m-p/427120#M22436</guid>
      <dc:creator>Learning_S</dc:creator>
      <dc:date>2018-01-15T19:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PROC SURVEYSELECT with Sampling Constraint</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-SURVEYSELECT-with-Sampling-Constraint/m-p/427247#M22454</link>
      <description>&lt;P&gt;That looks more like something for Proc Plan.&lt;/P&gt;
&lt;P&gt;Partial from the documentation:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#800000"&gt;PLAN procedure constructs designs and randomizes plans for factorial experiments, especially nested and crossed experiments and randomized block designs. PROC PLAN can also be used for generating lists of permutations and combinations of numbers. The PLAN procedure can construct the following types of experimental designs:&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;UL type="disc"&gt;
&lt;LI&gt;
&lt;P&gt;&lt;FONT color="#800000"&gt;full factorial designs, with and without randomization&lt;/FONT&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might describe how you intend to use this result.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 16:22:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-SURVEYSELECT-with-Sampling-Constraint/m-p/427247#M22454</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-12T16:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PROC SURVEYSELECT with Sampling Constraint</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-SURVEYSELECT-with-Sampling-Constraint/m-p/427281#M22459</link>
      <description>&lt;P&gt;Thanks for the help! I intend to use it as follows: have an ordered id and then have three following measurements that are randomized. The following code that I wrote down does something similar but would like to control the number of "drugs" and how many times each one can show up per level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I generated this code and got this result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data dat;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;do id=101 to 108;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;output;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;end;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc plan seed=27371;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; factors id=8 ordered Drug=3;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; output data=dat out=plan;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS Output&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;id Drug &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which is close to what I'd like but I would like to know how to control for the number of times each drug shows up per level and how to increase the number of drugs without increasing the levels.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g Have 6 drugs, 1,2,3,4 show up 1 time but 5,6 show up twice per level&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS I can't seem to open out=plan&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 17:07:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-SURVEYSELECT-with-Sampling-Constraint/m-p/427281#M22459</guid>
      <dc:creator>Learning_S</dc:creator>
      <dc:date>2018-01-12T17:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PROC SURVEYSELECT with Sampling Constraint</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-SURVEYSELECT-with-Sampling-Constraint/m-p/427394#M22465</link>
      <description>&lt;P&gt;Proc Plan since it has an interactive behavior possible is like Proc SQL and Datasets and uses quit; to indicate you are actually finished with the procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll have to clarify "Which is close to what I'd like but I would like to know how to control for the number of times each drug shows up per level and how to increase the number of drugs without increasing the levels." Levels of what?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this closer?&lt;/P&gt;
&lt;PRE&gt;proc plan  seed=27371 ;
   factors id=8 ordered  Drug=3 of 5;
   
run;
quit;&lt;/PRE&gt;
&lt;P&gt;Notice that you were getting an error from your data set because there was no value for drug.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 23:09:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-SURVEYSELECT-with-Sampling-Constraint/m-p/427394#M22465</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-12T23:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PROC SURVEYSELECT with Sampling Constraint</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-SURVEYSELECT-with-Sampling-Constraint/m-p/427397#M22466</link>
      <description>&lt;P&gt;That's definitely closer, thanks!&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll have to clarify "Which is close to what I'd like but I would like to know how to control for the number of times each drug shows up per level and how to increase the number of drugs without increasing the levels." Levels of what?&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I apologize for my poor wording. Let's return to the output that I had.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;id Drug&lt;/P&gt;&lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the second column, 1 shows up 3 times, 2 shows up 2 times, and 3 shows up 3 times&lt;/P&gt;&lt;P&gt;This sum does not match the fourth column. (Coincidentally, it does for the third)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to define saying 1 has to show up 3 times across the second, third, and fourth column without being in the same observation (ditto for 2 and 3 barring size).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using PROC SURVEYSELECT as an example, I would like to control the size of the groups such as when using the option groups=(num1, num2, ..., num n) for PROC SELECTSURVEY. Essentially, these two PROCs each do something that I'd like to accomplish in just one operation (PROC PLAN for random ordering without a number repeating across an observation with multiple column creation) (PROC SURVEYSELECT for controlling size of each group)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this explanation is much clearer.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 23:31:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-SURVEYSELECT-with-Sampling-Constraint/m-p/427397#M22466</guid>
      <dc:creator>Learning_S</dc:creator>
      <dc:date>2018-01-12T23:31:29Z</dc:date>
    </item>
  </channel>
</rss>

