<?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 Difference between proc multtest and proc mixed in Dunnett test in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Difference-between-proc-multtest-and-proc-mixed-in-Dunnett-test/m-p/815624#M81848</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have run the Dunnett test on both proc multtest and proc mixed, and the p-values before adjustment match perfectly, but the adjusted p-values do not match and a large difference occurs.&lt;BR /&gt;I think the reason why the multtest does not match is because of the seed value set, but the difference is too large for that.&lt;BR /&gt;What algorithm is working for these two?&lt;BR /&gt;I am using ddfm=satterth as an option.&lt;BR /&gt;If it is not possible for me to explain, I would appreciate it if you could provide me with some reference material.&lt;/P&gt;</description>
    <pubDate>Sun, 29 May 2022 16:15:32 GMT</pubDate>
    <dc:creator>sskt</dc:creator>
    <dc:date>2022-05-29T16:15:32Z</dc:date>
    <item>
      <title>Difference between proc multtest and proc mixed in Dunnett test</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Difference-between-proc-multtest-and-proc-mixed-in-Dunnett-test/m-p/815624#M81848</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have run the Dunnett test on both proc multtest and proc mixed, and the p-values before adjustment match perfectly, but the adjusted p-values do not match and a large difference occurs.&lt;BR /&gt;I think the reason why the multtest does not match is because of the seed value set, but the difference is too large for that.&lt;BR /&gt;What algorithm is working for these two?&lt;BR /&gt;I am using ddfm=satterth as an option.&lt;BR /&gt;If it is not possible for me to explain, I would appreciate it if you could provide me with some reference material.&lt;/P&gt;</description>
      <pubDate>Sun, 29 May 2022 16:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Difference-between-proc-multtest-and-proc-mixed-in-Dunnett-test/m-p/815624#M81848</guid>
      <dc:creator>sskt</dc:creator>
      <dc:date>2022-05-29T16:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between proc multtest and proc mixed in Dunnett test</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Difference-between-proc-multtest-and-proc-mixed-in-Dunnett-test/m-p/815672#M81851</link>
      <description>&lt;P&gt;Please post the SAS statements for each analysis. In particular, how are you using PROC MULTTEST? I do not see Dunnet's test in the documentation. You mention a seed value, so are you using some sort of resampling?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assume for PROC MIXED you are using the LSMEANS statement such as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LSMEANS Treatment / diff adjust=dunnet;&lt;/P&gt;
&lt;P&gt;but please provide the full statements for each procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 10:49:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Difference-between-proc-multtest-and-proc-mixed-in-Dunnett-test/m-p/815672#M81851</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-05-30T10:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between proc multtest and proc mixed in Dunnett test</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Difference-between-proc-multtest-and-proc-mixed-in-Dunnett-test/m-p/815700#M81853</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following is the code used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;proc multtest data=raw permutation order=data out=OUT
                            nsample=100000 seed=1;
  class group;
  test mean(epoch / ddfm=sat);
  contrast '1-control' 1 -1  0 0 0;
  contrast '2-control' 1 0 -1 0 0;
  contrast '3-control' 1 0  0 -1 0;
  contrast '4-control' 1 0 0 0 -1;
run;

proc mixed data=raw order=data;
  class group;
  model epoch=group/ddfm=satterth;
  repeated /group=group;
  lsmeans group/adjust=dunnett pdiff=control('control') ;
run;
&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 May 2022 14:24:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Difference-between-proc-multtest-and-proc-mixed-in-Dunnett-test/m-p/815700#M81853</guid>
      <dc:creator>sskt</dc:creator>
      <dc:date>2022-05-30T14:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between proc multtest and proc mixed in Dunnett test</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Difference-between-proc-multtest-and-proc-mixed-in-Dunnett-test/m-p/816538#M81861</link>
      <description>&lt;P&gt;Sorry for the delay. It was a busy week.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have your data, so it is difficult to assess the problem.&lt;/P&gt;
&lt;P&gt;I suspect the reason that you are not getting similar answers is because your CONTRAST statements are not consistent with DUNNETT's comparison. The DUNNETT comparison is between each treatment group and a control group. Your CONTRAST statements seem to be comparing the first level of the GROUP variable with the 2nd, 3rd, etc.&amp;nbsp; This is correct if the first level is the control group, so please verify that that is the case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is some data and an analysis that we can all use.&amp;nbsp; When I run this program, the permutation p-values from PROC MULTTEST agree with the adjusted p-values from PROC MIXED to the second decimal place.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data raw;
call streaminit(1);
array g[5] $ ('control', '1','2','3','4');
array mean[5] (1 1.4 0.9 2 1);
array sd[5] (1 1.4 0.9 2 1);
length group $7;
do i = 1 to 5;
   group = g[i];
   do obs = 1 to 25;
      epoch = rand('Normal', mean[i], sd[i]);
      output;
   end;
end;
keep group epoch i obs;
run;

proc multtest data=raw permutation order=data out=OUT
                            nsample=100000 seed=1;
  class group;
  test mean(epoch / ddfm=sat);
  contrast '1-control' 1 -1  0 0 0;
  contrast '2-control' 1 0 -1 0 0;
  contrast '3-control' 1 0  0 -1 0;
  contrast '4-control' 1 0 0 0 -1;
  ods select Continuous pValues;
run;

proc mixed data=raw order=data;
  class group;
  model epoch=group/ddfm=satterth;
  repeated /group=group;
  lsmeans group/adjust=dunnett pdiff=control('control') ;
  ods select lsmeans diffs;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 05 Jun 2022 11:54:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Difference-between-proc-multtest-and-proc-mixed-in-Dunnett-test/m-p/816538#M81861</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-06-05T11:54:46Z</dc:date>
    </item>
  </channel>
</rss>

