<?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 PROC SURVEYSELECT FOR CROSSOVERS DESIGN: in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYSELECT-FOR-CROSSOVERS-DESIGN/m-p/753639#M36672</link>
    <description>&lt;P&gt;Dear sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An adhesiveness dataset was generated for 63 subjects (64 total -1 dropout = 63 final) from a Crossover Design with 2 periods and 2 treatments (Crossover 2x2 ). I intend to estimate a parametric boostraping confidence interval for the difference of the two treatments (T, R) in order to estimate the size of the bias. A more experienced SAS user suggested using PROC SURVEYSELECT to resampling from the final dataset (63 survey subjects). The code suggested by him can be verified below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I run this code I notice that in many replicates generated the treatment sequences (one of the cluster levels) were quite unbalanced (with very different sample sizes) when ideally they would have similar sample sizes. Does anyone have any suggestions on how to modify the code to get less unbalanced treatment sequences?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;nbsp;Title Bootstrap analysis;

PROC SURVEYSELECT data=work.ADHESIVENESS method=BALBOOTSTRAP reps=100;
SAMPLINGUNIT Subject;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jul 2021 00:06:38 GMT</pubDate>
    <dc:creator>Weidsoncs</dc:creator>
    <dc:date>2021-07-13T00:06:38Z</dc:date>
    <item>
      <title>PROC SURVEYSELECT FOR CROSSOVERS DESIGN:</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYSELECT-FOR-CROSSOVERS-DESIGN/m-p/753639#M36672</link>
      <description>&lt;P&gt;Dear sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An adhesiveness dataset was generated for 63 subjects (64 total -1 dropout = 63 final) from a Crossover Design with 2 periods and 2 treatments (Crossover 2x2 ). I intend to estimate a parametric boostraping confidence interval for the difference of the two treatments (T, R) in order to estimate the size of the bias. A more experienced SAS user suggested using PROC SURVEYSELECT to resampling from the final dataset (63 survey subjects). The code suggested by him can be verified below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I run this code I notice that in many replicates generated the treatment sequences (one of the cluster levels) were quite unbalanced (with very different sample sizes) when ideally they would have similar sample sizes. Does anyone have any suggestions on how to modify the code to get less unbalanced treatment sequences?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;nbsp;Title Bootstrap analysis;

PROC SURVEYSELECT data=work.ADHESIVENESS method=BALBOOTSTRAP reps=100;
SAMPLINGUNIT Subject;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 00:06:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYSELECT-FOR-CROSSOVERS-DESIGN/m-p/753639#M36672</guid>
      <dc:creator>Weidsoncs</dc:creator>
      <dc:date>2021-07-13T00:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYSELECT FOR CROSSOVERS DESIGN:</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYSELECT-FOR-CROSSOVERS-DESIGN/m-p/753914#M36683</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/389213"&gt;@Weidsoncs&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A simple way to improve the balance of the treatment sequences in the bootstrap samples would be to use &lt;EM&gt;stratified&lt;/EM&gt; sampling, i.e., add the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_surveyselect_syntax07.htm" target="_blank" rel="noopener"&gt;STRATA statement&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;strata Sequence;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to your PROC SURVEYSELECT step after sorting the input dataset (&lt;FONT face="courier new,courier"&gt;work.ADHESIVENESS&lt;/FONT&gt;) by variable &lt;FONT face="courier new,courier"&gt;Sequence&lt;/FONT&gt;. Then all 100 replicates will have 31 subjects (62 observations) with &lt;FONT face="courier new,courier"&gt;Sequence='RT'&lt;/FONT&gt; and 32 subjects (64 observations) with &lt;FONT face="courier new,courier"&gt;Sequence='TR'&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure how this will affect your intended parametric CI estimation, though.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 20:11:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYSELECT-FOR-CROSSOVERS-DESIGN/m-p/753914#M36683</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-07-13T20:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYSELECT FOR CROSSOVERS DESIGN:</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYSELECT-FOR-CROSSOVERS-DESIGN/m-p/753970#M36688</link>
      <description>&lt;P&gt;The solution that I found was exataly this !!! Thank you for help...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;see the complete code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=work.maydataset1;
   by Sequence;
run;

PROC SURVEYSELECT data=work.mydataset method=BALBOOTSTRAP reps=100 out=maydataset2;
SAMPLINGUNIT Subject;
Strata Sequence;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 22:13:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYSELECT-FOR-CROSSOVERS-DESIGN/m-p/753970#M36688</guid>
      <dc:creator>Weidsoncs</dc:creator>
      <dc:date>2021-07-13T22:13:09Z</dc:date>
    </item>
  </channel>
</rss>

