<?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: ANOVA test: Modify degrees of freedom using a complex survey in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/ANOVA-test-Modify-degrees-of-freedom-using-a-complex-survey/m-p/451659#M23596</link>
    <description>Hi,&lt;BR /&gt;Thanks for your suggestion. Let's say in comparing mean age by quartiles (Q1-Q4) of a given variable C. The code I'm using is:&lt;BR /&gt;proc surveyreg data=data varmethod=brr;&lt;BR /&gt;class C&lt;BR /&gt;model age = C / noint solution clparm anova ;&lt;BR /&gt;weight bsw;&lt;BR /&gt;repweights bsw1-bsw500;&lt;BR /&gt;&lt;BR /&gt;estimate 'Q1 vs Q2' C 1 -1 0 0;&lt;BR /&gt;estimate 'Q1 vs Q3' C 1 0 -1 0;&lt;BR /&gt;estimate 'Q1 vs Q4' C 1 0 0 -1;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;If the option DF is used, it modifies the DF of the multiple contrast (i.e. ESTIMATE option), but not for the ANOVA table. In this case, the DF of the comparisons by two is 500 while for the ANOVA test is number of observation - 1.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;AG.</description>
    <pubDate>Thu, 05 Apr 2018 19:01:49 GMT</pubDate>
    <dc:creator>alexgonzalez</dc:creator>
    <dc:date>2018-04-05T19:01:49Z</dc:date>
    <item>
      <title>ANOVA test: Modify degrees of freedom using a complex survey</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ANOVA-test-Modify-degrees-of-freedom-using-a-complex-survey/m-p/451637#M23592</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am trying to compare multiple means using a sample from a survey with a complex design (500 bootstrap weights available) using SAS EG 5.1. In this type of surveys, the denominator degrees of freedom (df) = # of clusters – # of strata. When using PROC SURVEYREG to perform an ANOVA analysis, the default is # of observation - # of parameters. There are cases where I perform multiple comparison tests, and the results from multiple comparisons are in contradiction to the results from ANOVA. One possible solution would be to correct and fix degrees of freedom in those tests. Nevertheless, the denominator degrees of freedom for the ANOVA test cannot not be modified. Could you please advise?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AG.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 17:35:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ANOVA-test-Modify-degrees-of-freedom-using-a-complex-survey/m-p/451637#M23592</guid>
      <dc:creator>alexgonzalez</dc:creator>
      <dc:date>2018-04-05T17:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: ANOVA test: Modify degrees of freedom using a complex survey</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ANOVA-test-Modify-degrees-of-freedom-using-a-complex-survey/m-p/451654#M23595</link>
      <description>&lt;P&gt;You should show your Proc Surveyreg code as a minimum. That would avoid getting suggestions to implement options you are already using and possibly give us an idea of where to make suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, how are doing "multiple comparison tests"?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 18:45:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ANOVA-test-Modify-degrees-of-freedom-using-a-complex-survey/m-p/451654#M23595</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-05T18:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: ANOVA test: Modify degrees of freedom using a complex survey</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ANOVA-test-Modify-degrees-of-freedom-using-a-complex-survey/m-p/451659#M23596</link>
      <description>Hi,&lt;BR /&gt;Thanks for your suggestion. Let's say in comparing mean age by quartiles (Q1-Q4) of a given variable C. The code I'm using is:&lt;BR /&gt;proc surveyreg data=data varmethod=brr;&lt;BR /&gt;class C&lt;BR /&gt;model age = C / noint solution clparm anova ;&lt;BR /&gt;weight bsw;&lt;BR /&gt;repweights bsw1-bsw500;&lt;BR /&gt;&lt;BR /&gt;estimate 'Q1 vs Q2' C 1 -1 0 0;&lt;BR /&gt;estimate 'Q1 vs Q3' C 1 0 -1 0;&lt;BR /&gt;estimate 'Q1 vs Q4' C 1 0 0 -1;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;If the option DF is used, it modifies the DF of the multiple contrast (i.e. ESTIMATE option), but not for the ANOVA table. In this case, the DF of the comparisons by two is 500 while for the ANOVA test is number of observation - 1.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;AG.</description>
      <pubDate>Thu, 05 Apr 2018 19:01:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ANOVA-test-Modify-degrees-of-freedom-using-a-complex-survey/m-p/451659#M23596</guid>
      <dc:creator>alexgonzalez</dc:creator>
      <dc:date>2018-04-05T19:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: ANOVA test: Modify degrees of freedom using a complex survey</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ANOVA-test-Modify-degrees-of-freedom-using-a-complex-survey/m-p/451668#M23597</link>
      <description>&lt;P&gt;From the documentation for Surveyreg:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;PROC SURVEYREG produces tests for the significance of model effects, regression parameters, estimable functions specified in the &lt;A href="http://127.0.0.1:65489/help/statug.hlp/statug_surveyreg_syntax08.htm" target="_blank"&gt;ESTIMATE&lt;/A&gt; statement, and contrasts specified in the &lt;A href="http://127.0.0.1:65489/help/statug.hlp/statug_surveyreg_syntax05.htm" target="_blank"&gt;CONTRAST&lt;/A&gt; statement. It computes all these tests taking into account the sample design. The degrees of freedom for these tests &lt;STRONG&gt;differ from the degrees of freedom for the ANOVA table&lt;/STRONG&gt;, which does not consider the sample design.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So it sounds like trying to force the same DF in both is going to be fruitless.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note this bit in Degrees of Freedom:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;For the &lt;A href="http://127.0.0.1:65489/help/statug.hlp/statug_surveyreg_details15.htm#statug.surveyreg.brrdetails" target="_blank"&gt;BRR&lt;/A&gt; method (including &lt;A href="http://127.0.0.1:65489/help/statug.hlp/statug_surveyreg_details15.htm#statug.surveyreg.faymethoddetails" target="_blank"&gt;Fay’s method&lt;/A&gt; ) without a &lt;A href="http://127.0.0.1:65489/help/statug.hlp/statug_surveyreg_syntax13.htm" target="_blank"&gt;REPWEIGHTS&lt;/A&gt; statement, the denominator &lt;SPAN class=" AAmathtext"&gt;df&lt;/SPAN&gt; equals the number of strata.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you do not include a STRATA variable you one 1 stratum and it appears that without the repweights statement you might force the Estimates to 1DF matching Anova but I doubt that is what you really want.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 19:36:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ANOVA-test-Modify-degrees-of-freedom-using-a-complex-survey/m-p/451668#M23597</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-05T19:36:58Z</dc:date>
    </item>
  </channel>
</rss>

