<?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 Creating block randomisation scheme in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Creating-block-randomisation-scheme/m-p/390878#M20389</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a block randomisation scheme. I've managed to create something very close to what I want, except I would like the subject var to be blank instead of the numbers 1-3. I'm a complete noob&amp;nbsp;when it comes to SAS so any help is much appreciated. I use SAS studo v9.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dyllan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;x=round(ranuni(0)*1000000);&lt;BR /&gt;call symput ('seed', x);title "3 arm trial randomisation scheme.";&lt;BR /&gt;run;&lt;BR /&gt;title "3 arm trial randomisation scheme.";&lt;BR /&gt;proc plan;&lt;BR /&gt;factors block=100 ordered subject=3 ordered/noprint;&lt;BR /&gt;treatments treatment=3 random;&lt;BR /&gt;output out=out&lt;BR /&gt;treatment cvals=('A' 'B' "C");&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=out noobs;&lt;BR /&gt;var block treatment subject;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Aug 2017 11:32:53 GMT</pubDate>
    <dc:creator>Dyllan</dc:creator>
    <dc:date>2017-08-25T11:32:53Z</dc:date>
    <item>
      <title>Creating block randomisation scheme</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Creating-block-randomisation-scheme/m-p/390878#M20389</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a block randomisation scheme. I've managed to create something very close to what I want, except I would like the subject var to be blank instead of the numbers 1-3. I'm a complete noob&amp;nbsp;when it comes to SAS so any help is much appreciated. I use SAS studo v9.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dyllan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;x=round(ranuni(0)*1000000);&lt;BR /&gt;call symput ('seed', x);title "3 arm trial randomisation scheme.";&lt;BR /&gt;run;&lt;BR /&gt;title "3 arm trial randomisation scheme.";&lt;BR /&gt;proc plan;&lt;BR /&gt;factors block=100 ordered subject=3 ordered/noprint;&lt;BR /&gt;treatments treatment=3 random;&lt;BR /&gt;output out=out&lt;BR /&gt;treatment cvals=('A' 'B' "C");&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=out noobs;&lt;BR /&gt;var block treatment subject;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 11:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Creating-block-randomisation-scheme/m-p/390878#M20389</guid>
      <dc:creator>Dyllan</dc:creator>
      <dc:date>2017-08-25T11:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating block randomisation scheme</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Creating-block-randomisation-scheme/m-p/390981#M20390</link>
      <description>&lt;P&gt;You have at least two possible approaches depending on how you will actually use the the out dataset, change the value which will be data step, or a format so the displayed value is blank.&lt;/P&gt;
&lt;PRE&gt;/* to actually change the value*/
data out1;
  set out; 
  call missing (subject);
run;
/* missing may be represented by other characters than .
   to show blank*/
options missing=' ';
proc print data=out1 noobs;
var block treatment subject;

run;
options missing='.';
/* or use a format to change the display*/
proc format library=work;
value blank
low-high=' '
;
run;
proc print data=out noobs;
   var block treatment subject;
   format subject blank.;
run;

&lt;/PRE&gt;
&lt;P&gt;If you are going to do this frequently then the format approach may be preferred if using the proc print output. Otherwise use the data change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 17:20:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Creating-block-randomisation-scheme/m-p/390981#M20390</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-25T17:20:18Z</dc:date>
    </item>
  </channel>
</rss>

