<?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: Different results for mixed ANOVA in SAS and SPSS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Different-results-for-mixed-ANOVA-in-SAS-and-SPSS/m-p/173967#M44796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for your replies. Doc@Duke, I didn't actually realize that GLM in SAS could do repeated measures - that was the whole reason I was using mixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve, is it generally better to use this MIXED (because it "accommodates correlation over time") compared with GLM -or are there circumstances where a repeated measures (or mixed method) ANOVA should be carried out in PROC GLM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know much about "covariance structures of the data" -I'll have to look into it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jul 2014 18:02:35 GMT</pubDate>
    <dc:creator>obrienfk</dc:creator>
    <dc:date>2014-07-10T18:02:35Z</dc:date>
    <item>
      <title>Different results for mixed ANOVA in SAS and SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Different-results-for-mixed-ANOVA-in-SAS-and-SPSS/m-p/173964#M44793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm conducting a mixed ANOVA. I have an independent groups variable (Group) with 2 levels and a repeated measures variable (Time) with 4 levels. I want to see if there's a main effect of Group, a main effect of Time and/or an interaction between the two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SPSS, this is simply done through the main ANOVA options. Because Group has only two levels, the analysis for the main effect of this variable is the same as doing a simple t-test. Indeed, in SPSS the exact same results come about for the Group part of the ANOVA as they do for a separate t-test (they both reveal Group to be non-significant).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAS, I have been using the PROC MIXED statement to conduct the a mixed ANOVA with this exact code (for a dataset in Long Format):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="color: #0000ff;"&gt;PROC MIXED DATA&lt;/SPAN&gt; = MyData;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #0000ff;"&gt; CLASS&lt;/SPAN&gt; Time Group IDSubject;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;MODEL&lt;/SPAN&gt; Score = Time Group Group*Time;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;REPEATED&lt;/SPAN&gt; Time/ &lt;SPAN style="color: #0000ff;"&gt;SUBJECT&lt;/SPAN&gt; = IDSubject;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;RUN&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's interesting is that the when I run this code, group is found to be significant! When I run a t-test using SAS, the results (non-significant) are the same as the t-test in SPSS and the main effect analysis for group in the Mixed ANOVA in SPSS as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is, why am I getting a different result in the Mixed ANOVA in SAS compared with SPSS. I'm assuming it has something to do with different calculations since the PROC mixed seems to be used for other things like Multilevel modelling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd appreciate any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 21:15:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Different-results-for-mixed-ANOVA-in-SAS-and-SPSS/m-p/173964#M44793</guid>
      <dc:creator>obrienfk</dc:creator>
      <dc:date>2014-07-09T21:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Different results for mixed ANOVA in SAS and SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Different-results-for-mixed-ANOVA-in-SAS-and-SPSS/m-p/173965#M44794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not at all familiar with SPSS, but the difference between the t test and PROC MIXED is that the t test assumes the observations are independent while the mixed model accommodates correlation over time. By removing this source of variability, greater precision is obtained for the estimates and consequently significance is "found".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My suspicion about the mixed ANOVA in SPSS is that it is more like PROC GLM and how it accommodates random effects, partitioning sums of squares, rather than finding a (restricted) maximum likelihood solution.&amp;nbsp; Getting results similar to the t test approach would tend to support this, I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as the analysis in PROC MIXED, consider adding a type= option to the REPEATED statement that reflects the covariance structure of the data.&amp;nbsp; If the data are equally spaced in time, autoregressive structures are likely to fit the data better than the default variance components structure.&amp;nbsp; If not equally spaced in time, structures such as spatial power&amp;nbsp; are often appropriate.&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, 10 Jul 2014 11:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Different-results-for-mixed-ANOVA-in-SAS-and-SPSS/m-p/173965#M44794</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-07-10T11:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Different results for mixed ANOVA in SAS and SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Different-results-for-mixed-ANOVA-in-SAS-and-SPSS/m-p/173966#M44795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Second Steve's comment on GLM.&amp;nbsp; If you did the REPEATED statement in GLM (rather than MIXED), I'd suspect that you would get nearly identical results to SPSS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 12:20:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Different-results-for-mixed-ANOVA-in-SAS-and-SPSS/m-p/173966#M44795</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2014-07-10T12:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Different results for mixed ANOVA in SAS and SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Different-results-for-mixed-ANOVA-in-SAS-and-SPSS/m-p/173967#M44796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for your replies. Doc@Duke, I didn't actually realize that GLM in SAS could do repeated measures - that was the whole reason I was using mixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve, is it generally better to use this MIXED (because it "accommodates correlation over time") compared with GLM -or are there circumstances where a repeated measures (or mixed method) ANOVA should be carried out in PROC GLM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know much about "covariance structures of the data" -I'll have to look into it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 18:02:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Different-results-for-mixed-ANOVA-in-SAS-and-SPSS/m-p/173967#M44796</guid>
      <dc:creator>obrienfk</dc:creator>
      <dc:date>2014-07-10T18:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Different results for mixed ANOVA in SAS and SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Different-results-for-mixed-ANOVA-in-SAS-and-SPSS/m-p/173968#M44797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Personal preference--I would never do a repeated measures in time (longitudinal design) in GLM, as the restrictions on the covariance structure are not reflective of physical, biological or economical processes.&amp;nbsp; The sphericity assumption and the work-around Huynh-Feldt or Greenhouse-Geisser adjustments all assume an "exchangeable" structure--that the actual ordering of the time variables makes no difference in the error.&amp;nbsp; Advances in methodology mean that we do not have to make such simplifying assumptions.&amp;nbsp; For similar reasons, I would not use GLM for random effects analyses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use GLM for regression when there are class variables, and for multivariate ANOVA.&amp;nbsp; Otherwise, I use GLIMMIX--it handles almost everything available in MIXED, plus it can deal with non-normally distributed endpoints.&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, 10 Jul 2014 19:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Different-results-for-mixed-ANOVA-in-SAS-and-SPSS/m-p/173968#M44797</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-07-10T19:55:49Z</dc:date>
    </item>
  </channel>
</rss>

