<?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: Transforming data for use in repeated measures ANOVA in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Transforming-data-for-use-in-repeated-measures-ANOVA/m-p/430238#M4428</link>
    <description>&lt;P&gt;Is subject 1 in group 1 and in group 2 supposed to be the same individual?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sort data=old;
by subject group;
run;

proc transpose data =old out=new prefix=t;
   by subject group;
   id time;
   var ave_learn;
run;&lt;/PRE&gt;</description>
    <pubDate>Wed, 24 Jan 2018 01:01:29 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-01-24T01:01:29Z</dc:date>
    <item>
      <title>Transforming data for use in repeated measures ANOVA</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Transforming-data-for-use-in-repeated-measures-ANOVA/m-p/430233#M4427</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am interested in figuring out how to transform my data set so I can use a repeated measures ANOVA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now I have an excel spreadsheet uploaded into SAS studio. It is now organized as this example, where there is a subject, a group trial, and time (pre, post- 1 week, post 1 month and control), with the dependent variable being the amount of learning. Now to use repeated measures I want to make sure that there is the assumption that time 1,2,3 are correlated (since its the same person). I read &lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_glm_sect036.htm" target="_self"&gt;here &lt;/A&gt;that I will need to transform it so that all the dependent variables are on the same line (e.g. subject 1 would have 15, 19, 25 on one line). I don't understand how to do that in SAS. I can't just make up "ave_learn1" "ave_learn2" "ave_learn3" can I? How do I do this? Please advise.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; data Old;
      input Subject Group Time ave_learn;
   datalines;
    1 1 1 15
    1 1 2 19
    1 1 3 25
    2 1 1 21
    2 1 2 18
    2 1 3 17
    1 2 1 14
    1 2 2 12
    1 2 3 16
    2 2 1 11
    2 2 2 20&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 00:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Transforming-data-for-use-in-repeated-measures-ANOVA/m-p/430233#M4427</guid>
      <dc:creator>xshinbrot0</dc:creator>
      <dc:date>2018-01-24T00:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming data for use in repeated measures ANOVA</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Transforming-data-for-use-in-repeated-measures-ANOVA/m-p/430238#M4428</link>
      <description>&lt;P&gt;Is subject 1 in group 1 and in group 2 supposed to be the same individual?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sort data=old;
by subject group;
run;

proc transpose data =old out=new prefix=t;
   by subject group;
   id time;
   var ave_learn;
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Jan 2018 01:01:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Transforming-data-for-use-in-repeated-measures-ANOVA/m-p/430238#M4428</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-24T01:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming data for use in repeated measures ANOVA</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Transforming-data-for-use-in-repeated-measures-ANOVA/m-p/430266#M4430</link>
      <description>&lt;P&gt;The way that I have it yes, it has the subject id with three lines of code (subject=1, pre-survey time=1; subject=1 postsurvey time=2; s&lt;SPAN&gt;ubject=1 postsurvey time=3), Let me try&amp;nbsp;that code though, thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 03:13:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Transforming-data-for-use-in-repeated-measures-ANOVA/m-p/430266#M4430</guid>
      <dc:creator>xshinbrot0</dc:creator>
      <dc:date>2018-01-24T03:13:46Z</dc:date>
    </item>
  </channel>
</rss>

