<?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 how to perform ANOVA with proc surveymeans? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-to-perform-ANOVA-with-proc-surveymeans/m-p/129556#M35321</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking to finish my dissertation and the last of my analysis requires ANOVA with weighted data.&amp;nbsp; I also need to get a mean score value.&amp;nbsp; Can you use the same code as used for a t test to get ANOVA data?&amp;nbsp;&amp;nbsp; Right now, I have use this (example) for the t test.&amp;nbsp; I'm using SAS v9.3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc surveymeans data=XXXX t;&lt;/P&gt;&lt;P&gt;class vary varx; *categorical variables;&lt;/P&gt;&lt;P&gt;weight weightvar;&lt;/P&gt;&lt;P&gt;var vary varx;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the correct code, then how do I get the mean score value? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I doing this correctly? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be greatly appreciated!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2012 22:02:25 GMT</pubDate>
    <dc:creator>jhats</dc:creator>
    <dc:date>2012-05-30T22:02:25Z</dc:date>
    <item>
      <title>how to perform ANOVA with proc surveymeans?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-perform-ANOVA-with-proc-surveymeans/m-p/129556#M35321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking to finish my dissertation and the last of my analysis requires ANOVA with weighted data.&amp;nbsp; I also need to get a mean score value.&amp;nbsp; Can you use the same code as used for a t test to get ANOVA data?&amp;nbsp;&amp;nbsp; Right now, I have use this (example) for the t test.&amp;nbsp; I'm using SAS v9.3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc surveymeans data=XXXX t;&lt;/P&gt;&lt;P&gt;class vary varx; *categorical variables;&lt;/P&gt;&lt;P&gt;weight weightvar;&lt;/P&gt;&lt;P&gt;var vary varx;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the correct code, then how do I get the mean score value? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I doing this correctly? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be greatly appreciated!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 22:02:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-perform-ANOVA-with-proc-surveymeans/m-p/129556#M35321</guid>
      <dc:creator>jhats</dc:creator>
      <dc:date>2012-05-30T22:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform ANOVA with proc surveymeans?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-perform-ANOVA-with-proc-surveymeans/m-p/129557#M35322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, a t-test on the proportions may be the only test you can get from SURVEYMEANS.&amp;nbsp; I could be wrong and if others know better, I hope they will contribute. To get the ANOVA with weighted data you are probably going to have to shift to PROC SURVEYREG.&amp;nbsp; For that to work, you will need classification variables and a response variable.&amp;nbsp; I presume vary and varx are the classification variables.&amp;nbsp; More info on this part will make responding easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get mean score values from SURVEYMEANS, try dropping the class statement and adding 'mean' to the proc statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc surveymeans data=XXXX t mean;&lt;/P&gt;&lt;P&gt;weight weightvar;&lt;/P&gt;&lt;P&gt;var vary varx;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do wonder what meaning you can attach to a mean for categorical variables, however.&amp;nbsp; It will be dependent on the number of categories and response patterns.&amp;nbsp; Perhaps the median and various quantiles would be more informative.&amp;nbsp; I don't know the field you are working in, so I can't say what might be standard practice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With more info on the design and sampling schema, I am sure that SURVEYREG can be adapted to do the ANOVA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 11:45:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-perform-ANOVA-with-proc-surveymeans/m-p/129557#M35322</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-05-31T11:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform ANOVA with proc surveymeans?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-perform-ANOVA-with-proc-surveymeans/m-p/450554#M69716</link>
      <description>&lt;P&gt;&lt;SPAN class="login-bold"&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363" target="_self"&gt;SteveDenham&lt;/A&gt;&amp;nbsp;is correct that you can perform ANOVA with PROC SURVEYREG. You can do this by specifying ANOVA as an option in the MODEL statement. You can see that here: &lt;A href="https://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_surveyreg_sect017.htm#statug.surveyreg.anavaopt" target="_self"&gt;https://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_surveyreg_sect017.htm#statug.surveyreg.anavaopt&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;here is an example:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;PROC SURVEYREG DATA=ZZ_Final2;&lt;BR /&gt;WEIGHT WTDR2D;&lt;BR /&gt;MODEL PctOfTotalSugrFromSSBs = FSDHH / ANOVA;&lt;BR /&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Good luck!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 09:24:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-perform-ANOVA-with-proc-surveymeans/m-p/450554#M69716</guid>
      <dc:creator>SeanM</dc:creator>
      <dc:date>2018-04-03T09:24:30Z</dc:date>
    </item>
  </channel>
</rss>

