<?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: 2-factor repeated measures ANOVA (treatment and time as factors) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/2-factor-repeated-measures-ANOVA-treatment-and-time-as-factors/m-p/953480#M47708</link>
    <description>One of assumption/hypothesis of Mixed Model   is normality of residuals/response variable. If this hypothesis was violated,you should use PROC GLIMMIX.&lt;BR /&gt;&lt;BR /&gt;Related to "homogeneity of variance" ,I think Mixed Model essentially take care of it,&lt;BR /&gt;Think about it ,why you have to use PROC MIXED ? it is just because one of hypothesis of GLM is "homogeneity of variance".  Mixed Model would take into count of the correlation between clusters  which  is caused by  heteroscedasticity(non-homogeneity of variance).&lt;BR /&gt;&lt;BR /&gt;If you want check the RANDOM effect is significant or not, try COVTEST option:&lt;BR /&gt;PROC MIXED DATA=dataset COVTEST;&lt;BR /&gt;CLASS SubjectID group time;&lt;BR /&gt;MODEL dependent_variable = group time group*time /residual;&lt;BR /&gt;REPEATED time /subject=SubjectID  type=un ;&lt;BR /&gt;LSMEANS group*time / PDIFF ADJUST=tukey;&lt;BR /&gt;RUN;&lt;BR /&gt;</description>
    <pubDate>Fri, 13 Dec 2024 01:41:57 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-12-13T01:41:57Z</dc:date>
    <item>
      <title>2-factor repeated measures ANOVA (treatment and time as factors)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/2-factor-repeated-measures-ANOVA-treatment-and-time-as-factors/m-p/953249#M47700</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I need some help with analyzing data from a study that examines dependent variables at two different time points across four treatment groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dataset is in long format, and looks like this:&lt;/P&gt;&lt;P&gt;SubjectID Group Time Dependent_variable&lt;/P&gt;&lt;P&gt;1 2 Baseline 60&lt;BR /&gt;1 2 Post_Intervention 20&lt;BR /&gt;2 2 Baseline 23&lt;BR /&gt;2 2 Post_Intervention 14&lt;BR /&gt;3 3 Baseline 12&lt;BR /&gt;3 3 Post_Intervention 10&lt;BR /&gt;4 1 Baseline 20&lt;BR /&gt;4 1 Post_Intervention 22&lt;BR /&gt;&lt;BR /&gt;I am planning to run a two-factor repeated measures ANOVA and tried the following code. Is this the correct approach?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC GLM DATA = dataset;&lt;/P&gt;&lt;P&gt;CLASS group time;&lt;/P&gt;&lt;P&gt;MODEL dependent_variable = group time group*time;&lt;/P&gt;&lt;P&gt;REPEATED time 2;&lt;/P&gt;&lt;P&gt;LSMEANS group*time / PDIFF ADJUST=tukey;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks so much!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 16:01:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/2-factor-repeated-measures-ANOVA-treatment-and-time-as-factors/m-p/953249#M47700</guid>
      <dc:creator>BeeL</dc:creator>
      <dc:date>2024-12-11T16:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: 2-factor repeated measures ANOVA (treatment and time as factors)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/2-factor-repeated-measures-ANOVA-treatment-and-time-as-factors/m-p/953319#M47704</link>
      <description>Nope. Since your data is longitidu(repeated measure) data, you should use MIXED model ,not old/obsolete GLM model.&lt;BR /&gt;&lt;BR /&gt;PROC MIXED DATA=dataset;&lt;BR /&gt;CLASS  SubjectID  group time;&lt;BR /&gt;MODEL dependent_variable = group time group*time;&lt;BR /&gt;REPEATED time /subject=SubjectID ;&lt;BR /&gt;LSMEANS group*time / PDIFF ADJUST=tukey;&lt;BR /&gt;RUN;</description>
      <pubDate>Thu, 12 Dec 2024 02:14:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/2-factor-repeated-measures-ANOVA-treatment-and-time-as-factors/m-p/953319#M47704</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-12-12T02:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: 2-factor repeated measures ANOVA (treatment and time as factors)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/2-factor-repeated-measures-ANOVA-treatment-and-time-as-factors/m-p/953385#M47705</link>
      <description>&lt;P&gt;Thanks a lot!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an option to incorporate both normality of residuals and homogeneity of variance tests within the same procedure? I found a suggestion for testing normality of residuals (using QQ plots), but I haven't come across an option for testing homogeneity of variance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PROC MIXED DATA=dataset;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CLASS SubjectID group time;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MODEL dependent_variable = group time group*time /residual;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;REPEATED time /subject=SubjectID ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LSMEANS group*time / PDIFF ADJUST=tukey;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 14:55:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/2-factor-repeated-measures-ANOVA-treatment-and-time-as-factors/m-p/953385#M47705</guid>
      <dc:creator>BeeL</dc:creator>
      <dc:date>2024-12-12T14:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: 2-factor repeated measures ANOVA (treatment and time as factors)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/2-factor-repeated-measures-ANOVA-treatment-and-time-as-factors/m-p/953480#M47708</link>
      <description>One of assumption/hypothesis of Mixed Model   is normality of residuals/response variable. If this hypothesis was violated,you should use PROC GLIMMIX.&lt;BR /&gt;&lt;BR /&gt;Related to "homogeneity of variance" ,I think Mixed Model essentially take care of it,&lt;BR /&gt;Think about it ,why you have to use PROC MIXED ? it is just because one of hypothesis of GLM is "homogeneity of variance".  Mixed Model would take into count of the correlation between clusters  which  is caused by  heteroscedasticity(non-homogeneity of variance).&lt;BR /&gt;&lt;BR /&gt;If you want check the RANDOM effect is significant or not, try COVTEST option:&lt;BR /&gt;PROC MIXED DATA=dataset COVTEST;&lt;BR /&gt;CLASS SubjectID group time;&lt;BR /&gt;MODEL dependent_variable = group time group*time /residual;&lt;BR /&gt;REPEATED time /subject=SubjectID  type=un ;&lt;BR /&gt;LSMEANS group*time / PDIFF ADJUST=tukey;&lt;BR /&gt;RUN;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Dec 2024 01:41:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/2-factor-repeated-measures-ANOVA-treatment-and-time-as-factors/m-p/953480#M47708</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-12-13T01:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: 2-factor repeated measures ANOVA (treatment and time as factors)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/2-factor-repeated-measures-ANOVA-treatment-and-time-as-factors/m-p/953644#M47715</link>
      <description>&lt;P&gt;Thank you so much! Your input helped me a lot.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 10:03:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/2-factor-repeated-measures-ANOVA-treatment-and-time-as-factors/m-p/953644#M47715</guid>
      <dc:creator>BeeL</dc:creator>
      <dc:date>2024-12-16T10:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: 2-factor repeated measures ANOVA (treatment and time as factors)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/2-factor-repeated-measures-ANOVA-treatment-and-time-as-factors/m-p/955041#M47767</link>
      <description>&lt;P&gt;I realize this is late, but this is one situation where some of the options in GLIMMIX come in handy (see the GLIMMIX documentation). You can test for homogeneity of variance using the COVTEST statement in conjunction with using the Group= option in the RANDOM statement. My advice would be to fit the heterogeneous model no matter the result of the test, &lt;FONT color="#FF0000"&gt;&lt;U&gt;&lt;STRONG&gt;AS LONG AS&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt; you have sufficient data to fit the&amp;nbsp; number of parameters needed for the covariance structures under consideration and the model converges without messages or errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 17:22:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/2-factor-repeated-measures-ANOVA-treatment-and-time-as-factors/m-p/955041#M47767</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2025-01-03T17:22:46Z</dc:date>
    </item>
  </channel>
</rss>

