<?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: Random or repeated for PROC mixed in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Random-or-repeated-for-PROC-mixed/m-p/859909#M42502</link>
    <description>&lt;P&gt;Sounds like a classic repeated measures. Seeing the data would help a bit more, but from what you describe a REPEATED statement would be the way to go. Use the TYPE= to specify the covariance structure you wish for the 4 repeated measures on each subject. If each subject received one and only one treatment, then you would not be able to estimate a SUBJECT*TREATMENT interaction. If you model TIME as a CLASS effect and have 1 observation per time point per subject, then you will not be able to model a SUBJECT*TIME interaction. It is possible to model TIME as a continuous effect and set up a random coefficients model for this data with&lt;/P&gt;
&lt;P&gt;random int time / subject=subject&lt;/P&gt;
&lt;P&gt;However, you get much more flexibility in the covariances with the REPEATED approach.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2023 12:48:45 GMT</pubDate>
    <dc:creator>StatsMan</dc:creator>
    <dc:date>2023-02-21T12:48:45Z</dc:date>
    <item>
      <title>Random or repeated for PROC mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-or-repeated-for-PROC-mixed/m-p/859833#M42501</link>
      <description>&lt;P&gt;I have a data set with 4 groups, 5 subjects per group, at 4 timepoints (1, 2, 3, 4 hours post treatment).&amp;nbsp; I am using proc mixed with the following model:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mixed data=Result method=reml;&lt;BR /&gt;class subject treatment time;&lt;BR /&gt;model result = treatment time treatment*time;&lt;BR /&gt;&amp;lt;repeated or random&amp;gt;&lt;BR /&gt;lsmeans treatment / adjust=dunnett;&lt;BR /&gt;run; quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering if there are any advantages to using a repeated or random statement?&amp;nbsp; Additionally, I have seen people use the same data set and include interactions for the random statement.&amp;nbsp; Is it appropriate if I were to include the following in my random statement?:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;random subject subject*treatment subject*time&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 04:02:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-or-repeated-for-PROC-mixed/m-p/859833#M42501</guid>
      <dc:creator>stats2554</dc:creator>
      <dc:date>2023-02-21T04:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Random or repeated for PROC mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-or-repeated-for-PROC-mixed/m-p/859909#M42502</link>
      <description>&lt;P&gt;Sounds like a classic repeated measures. Seeing the data would help a bit more, but from what you describe a REPEATED statement would be the way to go. Use the TYPE= to specify the covariance structure you wish for the 4 repeated measures on each subject. If each subject received one and only one treatment, then you would not be able to estimate a SUBJECT*TREATMENT interaction. If you model TIME as a CLASS effect and have 1 observation per time point per subject, then you will not be able to model a SUBJECT*TIME interaction. It is possible to model TIME as a continuous effect and set up a random coefficients model for this data with&lt;/P&gt;
&lt;P&gt;random int time / subject=subject&lt;/P&gt;
&lt;P&gt;However, you get much more flexibility in the covariances with the REPEATED approach.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 12:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-or-repeated-for-PROC-mixed/m-p/859909#M42502</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2023-02-21T12:48:45Z</dc:date>
    </item>
  </channel>
</rss>

