<?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 Two-way ANOVA with Dunnett to get P-value in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Two-way-ANOVA-with-Dunnett-to-get-P-value/m-p/410381#M21444</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to do two-way ANOVA check with Dunnett option but need to have p-value for the mean comparison. I use the code below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc anova data=dataset;&lt;/P&gt;
&lt;P&gt;class&amp;nbsp;A B;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; model COST = A&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;| B;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;means A | B /dunnett;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The last piece of the test has the following table:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anova.PNG" style="width: 579px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16416iD666B9F268C85487/image-size/large?v=v2&amp;amp;px=999" role="button" title="anova.PNG" alt="anova.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to have P-values to see if means are significantly different across the groups. Anyone knows how to do it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot!&lt;/P&gt;
&lt;P&gt;Lizi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2017 17:44:35 GMT</pubDate>
    <dc:creator>lizzy28</dc:creator>
    <dc:date>2017-11-03T17:44:35Z</dc:date>
    <item>
      <title>Two-way ANOVA with Dunnett to get P-value</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-way-ANOVA-with-Dunnett-to-get-P-value/m-p/410381#M21444</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to do two-way ANOVA check with Dunnett option but need to have p-value for the mean comparison. I use the code below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc anova data=dataset;&lt;/P&gt;
&lt;P&gt;class&amp;nbsp;A B;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; model COST = A&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;| B;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;means A | B /dunnett;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The last piece of the test has the following table:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anova.PNG" style="width: 579px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16416iD666B9F268C85487/image-size/large?v=v2&amp;amp;px=999" role="button" title="anova.PNG" alt="anova.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to have P-values to see if means are significantly different across the groups. Anyone knows how to do it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot!&lt;/P&gt;
&lt;P&gt;Lizi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 17:44:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-way-ANOVA-with-Dunnett-to-get-P-value/m-p/410381#M21444</guid>
      <dc:creator>lizzy28</dc:creator>
      <dc:date>2017-11-03T17:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Two-way ANOVA with Dunnett to get P-value</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-way-ANOVA-with-Dunnett-to-get-P-value/m-p/410426#M21445</link>
      <description>&lt;P&gt;I don't think you can perform a Dunnett's test on an interaction in SAS. I believe it only applies to main effects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you should not use PROC ANOVA here, you really ought to use PROC GLM to analyze this data (although you still can't do Dunnett's test on interactions in either PROC), but GLM will probably provide more accurate results. From the PROC ANOVA documentation:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Caution&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;: If you use PROC ANOVA for analysis of unbalanced data, you must assume responsibility for the validity of the results.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 03 Nov 2017 19:31:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-way-ANOVA-with-Dunnett-to-get-P-value/m-p/410426#M21445</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-11-03T19:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Two-way ANOVA with Dunnett to get P-value</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-way-ANOVA-with-Dunnett-to-get-P-value/m-p/410440#M21446</link>
      <description>&lt;P&gt;Adding&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to do Dunnett's test on interactions, you can do this with Least-Squares Means (which you should probably be using anyway with this unbalanced data).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_glm_syntax10.htm&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_glm_syntax10.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 19:53:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-way-ANOVA-with-Dunnett-to-get-P-value/m-p/410440#M21446</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-11-03T19:53:15Z</dc:date>
    </item>
  </channel>
</rss>

