<?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: stratified block randomization with proportional allocation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/stratified-block-randomization-with-proportional-allocation/m-p/528106#M144091</link>
    <description>&lt;P&gt;See if this come close to what you want:&lt;/P&gt;
&lt;PRE&gt;data want;
   set have;
   strata1 = rand('table',.5,.5);
   strata2 = rand('table',.17,.36,.47);
run;&lt;/PRE&gt;
&lt;P&gt;The rand('table') function uses a list of proportions to randomly assign values of 1 , 2, 3 etc depending upon how many parameters are used. Since it is random you may not get exactly the number of records per cell though with large data set and not really small percentages you should get close. If not close enough re-run until they are .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jan 2019 18:07:40 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-01-17T18:07:40Z</dc:date>
    <item>
      <title>stratified block randomization with proportional allocation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stratified-block-randomization-with-proportional-allocation/m-p/528086#M144077</link>
      <description>&lt;P&gt;I am needing to develop a randomization table using stratified block randomization with proportional allocation for an outside group to use. We know the general population proportions among the sample we are screening participants from for the two strata variables we want to use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Treatment groups: 3&lt;/P&gt;&lt;P&gt;Strata 1: 2 levels (proportions of each level: 50%, 50%)&lt;/P&gt;&lt;P&gt;Strata 2: 3 levels (proportion of each level: 17%, 36%, 47%)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total participants: 30,000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been using PROC PLAN to develop my randomization table, but could not find a solution that allowed me to account for the proportional breakdown of each strata. I found some references for PROC SURVEYSELECT and proportional allocation, however I could not find a way to incorporate blocks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using PROC PLAN, I am able to generate a randomization table of most of what I need, but the treatment groups are distributed evenly across the unique strata combination&lt;/P&gt;&lt;P&gt;&lt;U&gt;What I get:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Treatment 1 (same for treatments 2 and 3)&lt;/P&gt;&lt;P&gt;&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; Strata 2&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp; Level 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Level 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Level 3&lt;/P&gt;&lt;P&gt;Strata 1&lt;/P&gt;&lt;P&gt;Level 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1680&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1680&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; 1680&lt;/P&gt;&lt;P&gt;Level 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1680&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1680&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; 1680&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;What I Need&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Treatment 1 (same for treatments 2 and 3)&lt;/P&gt;&lt;P&gt;&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; Strata 2&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp; Level 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Level 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Level 3&lt;/P&gt;&lt;P&gt;Strata 1&lt;/P&gt;&lt;P&gt;Level 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 571 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1210 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1579&lt;/P&gt;&lt;P&gt;Level 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 571 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1210 &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; 1579&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 16:18:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stratified-block-randomization-with-proportional-allocation/m-p/528086#M144077</guid>
      <dc:creator>hyunjeehale</dc:creator>
      <dc:date>2019-01-17T16:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: stratified block randomization with proportional allocation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stratified-block-randomization-with-proportional-allocation/m-p/528106#M144091</link>
      <description>&lt;P&gt;See if this come close to what you want:&lt;/P&gt;
&lt;PRE&gt;data want;
   set have;
   strata1 = rand('table',.5,.5);
   strata2 = rand('table',.17,.36,.47);
run;&lt;/PRE&gt;
&lt;P&gt;The rand('table') function uses a list of proportions to randomly assign values of 1 , 2, 3 etc depending upon how many parameters are used. Since it is random you may not get exactly the number of records per cell though with large data set and not really small percentages you should get close. If not close enough re-run until they are .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 18:07:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stratified-block-randomization-with-proportional-allocation/m-p/528106#M144091</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-17T18:07:40Z</dc:date>
    </item>
  </channel>
</rss>

