<?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 Re: Weighted Random Assignment with even distribution in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Weighted-Random-Assignment-with-even-distribution/m-p/800936#M315161</link>
    <description>&lt;P&gt;1. Having both datasets named table isn't going to work well.&lt;/P&gt;
&lt;P&gt;2. I can't see the relationship you are trying to establish between the two data sets. Perhaps a mock-up of the desired output would help.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2022 20:02:09 GMT</pubDate>
    <dc:creator>SASJedi</dc:creator>
    <dc:date>2022-03-08T20:02:09Z</dc:date>
    <item>
      <title>Weighted Random Assignment with even distribution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Weighted-Random-Assignment-with-even-distribution/m-p/800764#M315066</link>
      <description>&lt;P&gt;Suppose I have the following team of researchers:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data table;
input Name:$24. Team:$24 Subjects
format Name Team $24.;
datalines;
Ken 1 10
Sally 1 8
Thomas 1 4
Mike 2 12
Jamie 2 14
Bob 3 6
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;We already have subjects assigned to each researcher. However we want to assign more to each researcher so they each have 20. We have about 300 additional subjects that are assigned to a team but have yet to be assigned to a researcher. Furthermore, each subject has a test score that is weighted by team as such:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data table;
input Name:$24. Team:$24 TestScore
format Name  Team $24. TestScore
datalines;
Heather 1 200
Jim 1 185
Ernie 2 200
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How do I randomly assign subjects within teams while ensuring each researcher only has 20 subjects?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 01:53:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Weighted-Random-Assignment-with-even-distribution/m-p/800764#M315066</guid>
      <dc:creator>mmaleta851</dc:creator>
      <dc:date>2022-03-08T01:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Random Assignment with even distribution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Weighted-Random-Assignment-with-even-distribution/m-p/800936#M315161</link>
      <description>&lt;P&gt;1. Having both datasets named table isn't going to work well.&lt;/P&gt;
&lt;P&gt;2. I can't see the relationship you are trying to establish between the two data sets. Perhaps a mock-up of the desired output would help.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 20:02:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Weighted-Random-Assignment-with-even-distribution/m-p/800936#M315161</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2022-03-08T20:02:09Z</dc:date>
    </item>
  </channel>
</rss>

