<?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: Generating a list of all combinations of 12 subjects into 2 treatment group in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Generating-a-list-of-all-combinations-of-12-subjects-into-2/m-p/17084#M461</link>
    <description>If you are looking get a permutation-adjusted t-test, you can use PROC MULTTEST which will do the permutations internally for you and give you a permutation-adjusted p-value computed from the p-values of all the permutations.  For example:&lt;BR /&gt;
&lt;BR /&gt;
data a; &lt;BR /&gt;
 input Placebo VitA;&lt;BR /&gt;
 Grp="Placebo"; Y=Placebo; output;&lt;BR /&gt;
 Grp="VitA"; Y=VitA; output;&lt;BR /&gt;
 keep Grp Y;&lt;BR /&gt;
 datalines;&lt;BR /&gt;
8.62 0.06&lt;BR /&gt;
1.48 1.72&lt;BR /&gt;
8.93 2.19&lt;BR /&gt;
9.57 7.32&lt;BR /&gt;
2.65 7.53&lt;BR /&gt;
;&lt;BR /&gt;
proc multtest data=a perm;&lt;BR /&gt;
 class Grp; test mean(Y);&lt;BR /&gt;
 run;&lt;BR /&gt;
&lt;BR /&gt;
See the MULTTEST documentation for details on the computations and examples:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/multtest_toc.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/multtest_toc.htm&lt;/A&gt;</description>
    <pubDate>Thu, 06 May 2010 21:15:03 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2010-05-06T21:15:03Z</dc:date>
    <item>
      <title>Generating a list of all combinations of 12 subjects into 2 treatment group</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Generating-a-list-of-all-combinations-of-12-subjects-into-2/m-p/17083#M460</link>
      <description>The original data is:&lt;BR /&gt;
&lt;BR /&gt;
Placebo&lt;BR /&gt;
8.62&lt;BR /&gt;
1.48&lt;BR /&gt;
8.93&lt;BR /&gt;
9.57&lt;BR /&gt;
2.65&lt;BR /&gt;
&lt;BR /&gt;
Vitamin A&lt;BR /&gt;
0.06&lt;BR /&gt;
1.72&lt;BR /&gt;
2.19&lt;BR /&gt;
7.32&lt;BR /&gt;
7.53&lt;BR /&gt;
&lt;BR /&gt;
I would like to test Fisher’s (sharp) null hypothesis of no treatment effect on these 12 subjects.  I want the potential outcomes under the null.  I need a way to generate all combination of these 12 subjects placed in 2 groups of equal size (6 each).  The data has to be output in a form that I can perform a test on each assignment.&lt;BR /&gt;
&lt;BR /&gt;
I tried PROC PLAN combination function but I only got the 12:C:6 (924 outcomes) for the treatment group.  I did not know how to put the remaining outcomes into the control group.  I am not familiar with macros in SAS.</description>
      <pubDate>Thu, 06 May 2010 14:06:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Generating-a-list-of-all-combinations-of-12-subjects-into-2/m-p/17083#M460</guid>
      <dc:creator>BFleming</dc:creator>
      <dc:date>2010-05-06T14:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a list of all combinations of 12 subjects into 2 treatment group</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Generating-a-list-of-all-combinations-of-12-subjects-into-2/m-p/17084#M461</link>
      <description>If you are looking get a permutation-adjusted t-test, you can use PROC MULTTEST which will do the permutations internally for you and give you a permutation-adjusted p-value computed from the p-values of all the permutations.  For example:&lt;BR /&gt;
&lt;BR /&gt;
data a; &lt;BR /&gt;
 input Placebo VitA;&lt;BR /&gt;
 Grp="Placebo"; Y=Placebo; output;&lt;BR /&gt;
 Grp="VitA"; Y=VitA; output;&lt;BR /&gt;
 keep Grp Y;&lt;BR /&gt;
 datalines;&lt;BR /&gt;
8.62 0.06&lt;BR /&gt;
1.48 1.72&lt;BR /&gt;
8.93 2.19&lt;BR /&gt;
9.57 7.32&lt;BR /&gt;
2.65 7.53&lt;BR /&gt;
;&lt;BR /&gt;
proc multtest data=a perm;&lt;BR /&gt;
 class Grp; test mean(Y);&lt;BR /&gt;
 run;&lt;BR /&gt;
&lt;BR /&gt;
See the MULTTEST documentation for details on the computations and examples:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/multtest_toc.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/multtest_toc.htm&lt;/A&gt;</description>
      <pubDate>Thu, 06 May 2010 21:15:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Generating-a-list-of-all-combinations-of-12-subjects-into-2/m-p/17084#M461</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2010-05-06T21:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a list of all combinations of 12 subjects into 2 treatment group</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Generating-a-list-of-all-combinations-of-12-subjects-into-2/m-p/17085#M462</link>
      <description>Thanks.  I may ultimately have to do that as well.  But I still need the output for various combinations.  &lt;BR /&gt;
&lt;BR /&gt;
Can this procedure do that as well?</description>
      <pubDate>Fri, 07 May 2010 01:48:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Generating-a-list-of-all-combinations-of-12-subjects-into-2/m-p/17085#M462</guid>
      <dc:creator>BFleming</dc:creator>
      <dc:date>2010-05-07T01:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a list of all combinations of 12 subjects into 2 treatment group</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Generating-a-list-of-all-combinations-of-12-subjects-into-2/m-p/17086#M463</link>
      <description>Use the N= option to control the number of resamples generated (default is 20,000) and the OUTSAMP= option to create a data set containing all of the generated samples.  See the MULTTEST documentation:&lt;BR /&gt;
&lt;BR /&gt;
    &lt;A href="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/multtest_toc.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/multtest_toc.htm&lt;/A&gt;</description>
      <pubDate>Fri, 07 May 2010 14:14:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Generating-a-list-of-all-combinations-of-12-subjects-into-2/m-p/17086#M463</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2010-05-07T14:14:11Z</dc:date>
    </item>
  </channel>
</rss>

