<?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 Need to randomize treatments in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Need-to-randomize-treatments/m-p/469710#M70806</link>
    <description>&lt;P&gt;My data has 3 treatments(A,B,C). I need to allocate the subject to the treatment according to a 2:1:2 randomization ratio based on a random number generated from a uniform(0,1) distribution. This is the code I have so far, I just need one random treatment for the subject, I can come up with a random number from the code but no idea how to get the treatment incorporated into it. Data set dynamic contains all of the treatments in a 2:1:2 ratio.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data A;&lt;BR /&gt;set dynamic;&lt;BR /&gt;do i=1 to 1;&lt;BR /&gt;call streaminit(123);&lt;BR /&gt;u=rand("Uniform");&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be appreciated. Thank you.&amp;nbsp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jun 2018 18:49:12 GMT</pubDate>
    <dc:creator>azt5173</dc:creator>
    <dc:date>2018-06-12T18:49:12Z</dc:date>
    <item>
      <title>Need to randomize treatments</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-to-randomize-treatments/m-p/469710#M70806</link>
      <description>&lt;P&gt;My data has 3 treatments(A,B,C). I need to allocate the subject to the treatment according to a 2:1:2 randomization ratio based on a random number generated from a uniform(0,1) distribution. This is the code I have so far, I just need one random treatment for the subject, I can come up with a random number from the code but no idea how to get the treatment incorporated into it. Data set dynamic contains all of the treatments in a 2:1:2 ratio.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data A;&lt;BR /&gt;set dynamic;&lt;BR /&gt;do i=1 to 1;&lt;BR /&gt;call streaminit(123);&lt;BR /&gt;u=rand("Uniform");&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be appreciated. Thank you.&amp;nbsp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 18:49:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-to-randomize-treatments/m-p/469710#M70806</guid>
      <dc:creator>azt5173</dc:creator>
      <dc:date>2018-06-12T18:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need to randomize treatments</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-to-randomize-treatments/m-p/469750#M70814</link>
      <description>&lt;P&gt;As&amp;nbsp;@freelanceReinhard told you yesterday, use proc surveyselect with option groups=.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that approach doesn't work for you, please tell us why.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 20:34:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-to-randomize-treatments/m-p/469750#M70814</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-06-12T20:34:04Z</dc:date>
    </item>
  </channel>
</rss>

