<?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: How to interpret or change the number of observations and max obs per subject in mixed models? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-interpret-or-change-the-number-of-observations-and-max/m-p/708775#M34313</link>
    <description>&lt;P&gt;Hi Lori,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to add studyID to the CLASS statement.&amp;nbsp; Your code treats it as a continuous variable, so time is not blocked by subjectID.&amp;nbsp; I think you will be much happier with the other results (R matrix, the covariance parameter estimates and standard errors) as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You probably ought to include the interaction between time and group in your model, and consider looking at the time*group lsmeans using the slice approach.&amp;nbsp; This would enable you to test for differences between groups at each time point.&amp;nbsp; Your current model assumes that differences between groups is identical at each time point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to test particular groups against one another at a particular time point, you have two options.&amp;nbsp; In PROC MIXED, you would have to write several LSMESTIMATE statements.&amp;nbsp; However, if you shifted to PROC GLIMMIX, you would have the advantage of the SLICEDIFF and SLICEDIFFTYPE options in the LSMEANS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Wed, 30 Dec 2020 15:52:40 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2020-12-30T15:52:40Z</dc:date>
    <item>
      <title>How to interpret or change the number of observations and max obs per subject in mixed models?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-interpret-or-change-the-number-of-observations-and-max/m-p/708683#M34310</link>
      <description>&lt;P&gt;Hello. I am performing multiple mixed models using proc mixed in SAS version 9.4 for the first time. The original dataset was reshaped from a wide to long format. There are 336 participants total and repeated measures at baseline, 6 months, and 12 months. In the Results Viewer, the number of observations shows 1008 and the max obs per subject shows 1. How do I interpret or change the number of observations and max obs per participant? There are not 1008 individuals in the study.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 01:03:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-interpret-or-change-the-number-of-observations-and-max/m-p/708683#M34310</guid>
      <dc:creator>nqb5210</dc:creator>
      <dc:date>2020-12-30T01:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to interpret or change the number of observations and max obs per subject in mixed models?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-interpret-or-change-the-number-of-observations-and-max/m-p/708759#M34311</link>
      <description>&lt;P&gt;However there are 1008 observations, so it appears that the blocking by subject isn't being accomplished.&amp;nbsp; Could you share your PROC MIXED code?&amp;nbsp; I suspect that you need a subject= option in the REPEATED statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 13:48:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-interpret-or-change-the-number-of-observations-and-max/m-p/708759#M34311</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-12-30T13:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to interpret or change the number of observations and max obs per subject in mixed models?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-interpret-or-change-the-number-of-observations-and-max/m-p/708767#M34312</link>
      <description>&lt;P&gt;Thank you for replying to my post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my SAS code:&lt;/P&gt;&lt;P&gt;proc mixed data=projectlong2;&lt;BR /&gt;Class group time ;&lt;BR /&gt;Model wellbeing= group time;&lt;BR /&gt;Repeated time / Subject=studyID Type=UN R RCorr;&lt;BR /&gt;LSMeans group / PDiff cl;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like I do have the subject=option in the repeated statement but something is still not right.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lori&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 14:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-interpret-or-change-the-number-of-observations-and-max/m-p/708767#M34312</guid>
      <dc:creator>nqb5210</dc:creator>
      <dc:date>2020-12-30T14:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to interpret or change the number of observations and max obs per subject in mixed models?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-interpret-or-change-the-number-of-observations-and-max/m-p/708775#M34313</link>
      <description>&lt;P&gt;Hi Lori,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to add studyID to the CLASS statement.&amp;nbsp; Your code treats it as a continuous variable, so time is not blocked by subjectID.&amp;nbsp; I think you will be much happier with the other results (R matrix, the covariance parameter estimates and standard errors) as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You probably ought to include the interaction between time and group in your model, and consider looking at the time*group lsmeans using the slice approach.&amp;nbsp; This would enable you to test for differences between groups at each time point.&amp;nbsp; Your current model assumes that differences between groups is identical at each time point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to test particular groups against one another at a particular time point, you have two options.&amp;nbsp; In PROC MIXED, you would have to write several LSMESTIMATE statements.&amp;nbsp; However, if you shifted to PROC GLIMMIX, you would have the advantage of the SLICEDIFF and SLICEDIFFTYPE options in the LSMEANS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 15:52:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-interpret-or-change-the-number-of-observations-and-max/m-p/708775#M34313</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-12-30T15:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to interpret or change the number of observations and max obs per subject in mixed models?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-interpret-or-change-the-number-of-observations-and-max/m-p/708792#M34316</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much! I added studyID to the class statement and it worked. I am happier with the results.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the suggestions. I plan to include a two way and three way interaction (group by time by race) in the model. I would like to test specific groups against one another at different time points. There are four groups (3 treatment and 1 control). I will probably use several LSMESTIMATE statements. Am I on the right track (please see below)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of a partial code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;lsmeans group/ cl;&amp;nbsp;&lt;/P&gt;&lt;P&gt;estimate group 1-1;&amp;nbsp;&lt;/P&gt;&lt;P&gt;estimate&amp;nbsp; group 1-2;&lt;/P&gt;&lt;P&gt;estimate&amp;nbsp; group 1-3;&lt;/P&gt;&lt;P&gt;estimate group 1-4;&amp;nbsp;&lt;/P&gt;&lt;P&gt;estimate group 2-4;&amp;nbsp;&lt;/P&gt;&lt;P&gt;estimate group 3-4;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lori&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 19:35:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-interpret-or-change-the-number-of-observations-and-max/m-p/708792#M34316</guid>
      <dc:creator>nqb5210</dc:creator>
      <dc:date>2020-12-30T19:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to interpret or change the number of observations and max obs per subject in mixed models?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-interpret-or-change-the-number-of-observations-and-max/m-p/708884#M34318</link>
      <description>&lt;P&gt;You will probably be happier using LSMESTIMATE statements than ESTIMATE statements as the LSMESTIMATE allows for multiple lines so you can apply adjustments for multiple comparisons.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 13:38:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-interpret-or-change-the-number-of-observations-and-max/m-p/708884#M34318</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-12-31T13:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to interpret or change the number of observations and max obs per subject in mixed models?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-interpret-or-change-the-number-of-observations-and-max/m-p/708894#M34319</link>
      <description>&lt;P&gt;Ok, thank you. I will try that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 14:36:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-interpret-or-change-the-number-of-observations-and-max/m-p/708894#M34319</guid>
      <dc:creator>nqb5210</dc:creator>
      <dc:date>2020-12-31T14:36:46Z</dc:date>
    </item>
  </channel>
</rss>

