<?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 Factorial Repeated Measures ANOVA in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Factorial-Repeated-Measures-ANOVA/m-p/172648#M301684</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 racking my brains trying to do a Factorial Repeated Measures ANOVA; something that I was able to do easily on SPSS (the new lab I've moved to uses SAS). I found a similar discussion to this on these treads, but it was never really concluded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three IVs, one is an independent group with two levels ("teen" and "adult") while the other two are repeated measures IVs with two levels each (Time: "0 Months" and "12 Months"; Task: "Task A" and "Task B".) So just to be clear, each of my participants belonged to one of two groups, but all participants completed task A and task B at 0 Months and 12 Months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found in the SAS documentation (and on other websites) how to conduct an ANOVA where one variable is a repeated measures one while the other variables are independent groups; it seems to be possible to do it in PROC GLM or PROC MIXED. However, I cannot see how to alter this syntax so as to incorporate an additional repeated measures variables; and to look at the interaction between the two repeated measures variables, i.e. I'd like to be able to say whether the difference between performance on task A and B is different at each time point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I was just using one repeated measures variable (e.g. Time), I'd use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC GLM DATA=MyData;&lt;BR /&gt;&amp;nbsp; CLASS Age_Group;&lt;BR /&gt;&amp;nbsp; MODEL Time1-Time2 = Age_Group;&lt;BR /&gt;&amp;nbsp; REPEATED Time 2;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...but I can't see how to alter this to include another repeated measures IV. Is it the case that PROC GLM can only handle one Repeated Measures variable at a time and that I need to turn to PROC MIXED to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the above makes sense!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fearghal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Apr 2014 20:29:52 GMT</pubDate>
    <dc:creator>obrienfk</dc:creator>
    <dc:date>2014-04-08T20:29:52Z</dc:date>
    <item>
      <title>Factorial Repeated Measures ANOVA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Factorial-Repeated-Measures-ANOVA/m-p/172648#M301684</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 racking my brains trying to do a Factorial Repeated Measures ANOVA; something that I was able to do easily on SPSS (the new lab I've moved to uses SAS). I found a similar discussion to this on these treads, but it was never really concluded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three IVs, one is an independent group with two levels ("teen" and "adult") while the other two are repeated measures IVs with two levels each (Time: "0 Months" and "12 Months"; Task: "Task A" and "Task B".) So just to be clear, each of my participants belonged to one of two groups, but all participants completed task A and task B at 0 Months and 12 Months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found in the SAS documentation (and on other websites) how to conduct an ANOVA where one variable is a repeated measures one while the other variables are independent groups; it seems to be possible to do it in PROC GLM or PROC MIXED. However, I cannot see how to alter this syntax so as to incorporate an additional repeated measures variables; and to look at the interaction between the two repeated measures variables, i.e. I'd like to be able to say whether the difference between performance on task A and B is different at each time point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I was just using one repeated measures variable (e.g. Time), I'd use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC GLM DATA=MyData;&lt;BR /&gt;&amp;nbsp; CLASS Age_Group;&lt;BR /&gt;&amp;nbsp; MODEL Time1-Time2 = Age_Group;&lt;BR /&gt;&amp;nbsp; REPEATED Time 2;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...but I can't see how to alter this to include another repeated measures IV. Is it the case that PROC GLM can only handle one Repeated Measures variable at a time and that I need to turn to PROC MIXED to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the above makes sense!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fearghal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 20:29:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Factorial-Repeated-Measures-ANOVA/m-p/172648#M301684</guid>
      <dc:creator>obrienfk</dc:creator>
      <dc:date>2014-04-08T20:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Factorial Repeated Measures ANOVA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Factorial-Repeated-Measures-ANOVA/m-p/172649#M301685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you need to move to PROC MIXED.&amp;nbsp; See the part of the documentation under the REPEATED statement for Kronecker products in the type= option.&amp;nbsp; With two times and two tasks, your code would look something like;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc mixed data=yourdata;&lt;/P&gt;&lt;P&gt;class time task age_group subjid;&lt;/P&gt;&lt;P&gt;model response_variable=time|task|age_group;&lt;/P&gt;&lt;P&gt;repeated task age / type = &lt;A href="mailto:UN@UN"&gt;UN@UN&lt;/A&gt;&amp;nbsp; subject=subjid;&lt;/P&gt;&lt;P&gt;lsmeans time|task|age_group/diff cl;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be sure that yourdata is in 'long' form, with one record having a unique combination of values of time, task, age_group and subjid for each observation of response_variable.&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>Wed, 09 Apr 2014 19:26:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Factorial-Repeated-Measures-ANOVA/m-p/172649#M301685</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-04-09T19:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Factorial Repeated Measures ANOVA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Factorial-Repeated-Measures-ANOVA/m-p/172650#M301686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much for the help. That all makes sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 21:45:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Factorial-Repeated-Measures-ANOVA/m-p/172650#M301686</guid>
      <dc:creator>obrienfk</dc:creator>
      <dc:date>2014-04-17T21:45:38Z</dc:date>
    </item>
  </channel>
</rss>

