<?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 Repeated measure ANOVA in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Repeated-measure-ANOVA/m-p/47495#M12755</link>
    <description>My dataset has 16 subjects, each subject was exposed to 3 treatments, each treatment was repeated 4 times. So there is a correlation b/w the 4 times within a treatment, and another correlation factor b/w the 3 treatments within a subjects. The data looks like&lt;BR /&gt;
ID Treatment Time&lt;BR /&gt;
1  1              1&lt;BR /&gt;
1  1              2&lt;BR /&gt;
... ...            ...&lt;BR /&gt;
1  1              4&lt;BR /&gt;
1  2              1&lt;BR /&gt;
... ...            ...&lt;BR /&gt;
1  2              4&lt;BR /&gt;
... ...            ...&lt;BR /&gt;
1  3              4&lt;BR /&gt;
So the correlation matrix for subject 1 should be a 12*12 matrix, formed by 3*3=9 block matrices, and each matrix is a 4*4. The 3 diagonal 4*4 matrices should be the same. The off-diagonal 4*4 matrices don't need to be the same.&lt;BR /&gt;
There are 2 difference correlation factors within a subject. My question is how to specify such a correlation matrix. Hopefully the correlation matrix should look like something like this&lt;BR /&gt;
1 .5 .5 .5 .3 .3 .3 .3 .1 .1 .1 .1&lt;BR /&gt;
.5 1 .5 .5 .3 .3 .3 .3 .1 .1 .1 .1&lt;BR /&gt;
.5 .5 1 .5 .3 .3 .3 .3 .1 .1 .1 .1&lt;BR /&gt;
.5 .5 .5 1 .3 .3 .3 .3 .1 .1 .1 .1&lt;BR /&gt;
.3 .3 .3 .3 1 .5 .5 .5 .2 .2 .2 .2&lt;BR /&gt;
.3 .3 .3 .3 .5 1 .5 .5 .2 .2 .2 .2&lt;BR /&gt;
.3 .3 .3 .3 .5 .5 1 .5 .2 .2 .2 .2&lt;BR /&gt;
.3 .3 .3 .3 .5 .5 .5 1 .2 .2 .2 .2&lt;BR /&gt;
.1 .1 .1 .1 .2 .2 .2 .2 1 .5 .5 .5&lt;BR /&gt;
.1 .1 .1 .1 .2 .2 .2 .2 .5 1 .5 .5 &lt;BR /&gt;
.1 .1 .1 .1 .2 .2 .2 .2 .5 .5 1 .5&lt;BR /&gt;
.1 .1 .1 .1 .2 .2 .2 .2 .5 .5 .5 1 &lt;BR /&gt;
&lt;BR /&gt;
I used PROC MIXED&lt;BR /&gt;
If I specify RANDOM INT/ subject=ID, then all the off-diagonal will be the same. If I specify RANDOM INT/ subject=ID*TREATMENT, then I can only get a 4*4 correlation matrix, with no off-diagonal blocks.</description>
    <pubDate>Thu, 18 Sep 2008 02:14:12 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-09-18T02:14:12Z</dc:date>
    <item>
      <title>Repeated measure ANOVA</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Repeated-measure-ANOVA/m-p/47495#M12755</link>
      <description>My dataset has 16 subjects, each subject was exposed to 3 treatments, each treatment was repeated 4 times. So there is a correlation b/w the 4 times within a treatment, and another correlation factor b/w the 3 treatments within a subjects. The data looks like&lt;BR /&gt;
ID Treatment Time&lt;BR /&gt;
1  1              1&lt;BR /&gt;
1  1              2&lt;BR /&gt;
... ...            ...&lt;BR /&gt;
1  1              4&lt;BR /&gt;
1  2              1&lt;BR /&gt;
... ...            ...&lt;BR /&gt;
1  2              4&lt;BR /&gt;
... ...            ...&lt;BR /&gt;
1  3              4&lt;BR /&gt;
So the correlation matrix for subject 1 should be a 12*12 matrix, formed by 3*3=9 block matrices, and each matrix is a 4*4. The 3 diagonal 4*4 matrices should be the same. The off-diagonal 4*4 matrices don't need to be the same.&lt;BR /&gt;
There are 2 difference correlation factors within a subject. My question is how to specify such a correlation matrix. Hopefully the correlation matrix should look like something like this&lt;BR /&gt;
1 .5 .5 .5 .3 .3 .3 .3 .1 .1 .1 .1&lt;BR /&gt;
.5 1 .5 .5 .3 .3 .3 .3 .1 .1 .1 .1&lt;BR /&gt;
.5 .5 1 .5 .3 .3 .3 .3 .1 .1 .1 .1&lt;BR /&gt;
.5 .5 .5 1 .3 .3 .3 .3 .1 .1 .1 .1&lt;BR /&gt;
.3 .3 .3 .3 1 .5 .5 .5 .2 .2 .2 .2&lt;BR /&gt;
.3 .3 .3 .3 .5 1 .5 .5 .2 .2 .2 .2&lt;BR /&gt;
.3 .3 .3 .3 .5 .5 1 .5 .2 .2 .2 .2&lt;BR /&gt;
.3 .3 .3 .3 .5 .5 .5 1 .2 .2 .2 .2&lt;BR /&gt;
.1 .1 .1 .1 .2 .2 .2 .2 1 .5 .5 .5&lt;BR /&gt;
.1 .1 .1 .1 .2 .2 .2 .2 .5 1 .5 .5 &lt;BR /&gt;
.1 .1 .1 .1 .2 .2 .2 .2 .5 .5 1 .5&lt;BR /&gt;
.1 .1 .1 .1 .2 .2 .2 .2 .5 .5 .5 1 &lt;BR /&gt;
&lt;BR /&gt;
I used PROC MIXED&lt;BR /&gt;
If I specify RANDOM INT/ subject=ID, then all the off-diagonal will be the same. If I specify RANDOM INT/ subject=ID*TREATMENT, then I can only get a 4*4 correlation matrix, with no off-diagonal blocks.</description>
      <pubDate>Thu, 18 Sep 2008 02:14:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Repeated-measure-ANOVA/m-p/47495#M12755</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-09-18T02:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Repeated measure ANOVA</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Repeated-measure-ANOVA/m-p/47496#M12756</link>
      <description>This post is kind of sinking, but I really need some hints there.&lt;BR /&gt;
Anyone please, if you feel you can help but I didn't state my question clearly, let me know.&lt;BR /&gt;
Thanks.</description>
      <pubDate>Fri, 19 Sep 2008 14:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Repeated-measure-ANOVA/m-p/47496#M12756</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-09-19T14:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Repeated measure ANOVA</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Repeated-measure-ANOVA/m-p/47497#M12757</link>
      <description>If you want the off-diagonals, look at the TYPE= option.  TYPE=UN should certainly give what you need.  The problem here is that you have 66 cov parms to estimate, with only 192 obs.  Things may not converge real well.  DO NOT specify a GROUP=treatment option to model different covariances within treatment.  That leads to 192 cov parms.&lt;BR /&gt;
&lt;BR /&gt;
Good luck.</description>
      <pubDate>Fri, 26 Sep 2008 14:44:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Repeated-measure-ANOVA/m-p/47497#M12757</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2008-09-26T14:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Repeated measure ANOVA</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Repeated-measure-ANOVA/m-p/47498#M12758</link>
      <description>Thank you for your reply.&lt;BR /&gt;
I know I can try type=un, but that's not what I really want. As you can see from my example, I'd like something with kind of compond symmetry with elements as blocks. So there are much less parameters needed for estimation. In my example, for that 12*12 correlation matrix, only 4 parameters will be enough to describe the relationship.</description>
      <pubDate>Wed, 01 Oct 2008 04:28:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Repeated-measure-ANOVA/m-p/47498#M12758</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-01T04:28:34Z</dc:date>
    </item>
  </channel>
</rss>

