<?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 PROC MIXED asymmetrical design in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-asymmetrical-design/m-p/636524#M30466</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with an observational study with two groups of patients. Patients in the two groups A and B are matched 1:1 on age and sex.&lt;/P&gt;&lt;P&gt;Patients A had an event at time 0, and were followed-up at time 1 and time 2.&lt;/P&gt;&lt;P&gt;Patients B did not have an event at time 0 (therefore no data collected) but had data collected at time 1 and 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it correct to use the following PROC MIXED to evaluate the differences and change over time of biomarkers with this design?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC MIXED DATA=long;&lt;BR /&gt;CLASS id group(ref='0') time (REF="1");&lt;BR /&gt;MODEL biomarker=time group time*group/ CL DDFM=KR2 VCIRY OUTPM=fitmain RESIDUAL;&lt;BR /&gt;REPEATED time / SUBJECT=id(group) TYPE=UN R RCORR;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
    <pubDate>Wed, 01 Apr 2020 13:10:27 GMT</pubDate>
    <dc:creator>-Jules</dc:creator>
    <dc:date>2020-04-01T13:10:27Z</dc:date>
    <item>
      <title>PROC MIXED asymmetrical design</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-asymmetrical-design/m-p/636524#M30466</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with an observational study with two groups of patients. Patients in the two groups A and B are matched 1:1 on age and sex.&lt;/P&gt;&lt;P&gt;Patients A had an event at time 0, and were followed-up at time 1 and time 2.&lt;/P&gt;&lt;P&gt;Patients B did not have an event at time 0 (therefore no data collected) but had data collected at time 1 and 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it correct to use the following PROC MIXED to evaluate the differences and change over time of biomarkers with this design?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC MIXED DATA=long;&lt;BR /&gt;CLASS id group(ref='0') time (REF="1");&lt;BR /&gt;MODEL biomarker=time group time*group/ CL DDFM=KR2 VCIRY OUTPM=fitmain RESIDUAL;&lt;BR /&gt;REPEATED time / SUBJECT=id(group) TYPE=UN R RCORR;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 13:10:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-asymmetrical-design/m-p/636524#M30466</guid>
      <dc:creator>-Jules</dc:creator>
      <dc:date>2020-04-01T13:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIXED asymmetrical design</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-asymmetrical-design/m-p/636579#M30468</link>
      <description>&lt;P&gt;Before I answer whether the model is correct, I want to ask a question.&amp;nbsp; Was the biomarker measured at enrollment for group B? If so, then the model is fine, and should give you what you want.&amp;nbsp; If not, then I would follow the advice in SAS for Mixed Models, and fit what some call a means model.&amp;nbsp; Comparisons of interest could be obtained from LSMESTIMATE statements in this case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that if the biomarker measures at enrollment are clinically different, you may want to consider using that value as a covariate and do a repeated measures analysis of covariance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 14:58:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-asymmetrical-design/m-p/636579#M30468</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-04-01T14:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIXED asymmetrical design</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-asymmetrical-design/m-p/636646#M30475</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;The biomarker was not measured at enrollment for group B. Therefore:&lt;/P&gt;&lt;P&gt;I have 3 measurements of the biomarker in group A: at time 0, 1, and 2.&lt;/P&gt;&lt;P&gt;I have 2 measurements of the biomarker in group B: at time 1 and 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you clarify on what you mean with "fit a means model"? I looked up the&amp;nbsp;&lt;SPAN&gt;SAS for Mixed Models but was unsure what you meant.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Jules&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 19:24:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-asymmetrical-design/m-p/636646#M30475</guid>
      <dc:creator>-Jules</dc:creator>
      <dc:date>2020-04-01T19:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIXED asymmetrical design</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-asymmetrical-design/m-p/636657#M30476</link>
      <description>&lt;P&gt;The PROC MIXED code I would use would look something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 150%; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;PROC MIXED DATA=long;&lt;/SPAN&gt;&lt;BR style="box-sizing: border-box; color: #333333; font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 150%; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;CLASS id group time;&lt;/SPAN&gt;&lt;BR style="box-sizing: border-box; color: #333333; font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 150%; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;MODEL biomarker=time*group/ CL DDFM=KR2 VCIRY OUTPM=fitmain RESIDUAL;&lt;/SPAN&gt;&lt;BR style="box-sizing: border-box; color: #333333; font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 150%; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;REPEATED time / SUBJECT=id(group) TYPE=UN R RCORR;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;LSMESTIMATE time*group 'Comparison at time 1' 0 1 0 -1 0,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 'Comparison at time 2' 0 0 1 0 -1/ &lt;FONT color="#ff0000"&gt;&amp;lt;check to see if there are any options you want to put in here. JOINT would give an F test about the significance of both comparisons&amp;gt;&lt;/FONT&gt;;&lt;BR style="box-sizing: border-box; color: #333333; font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 150%; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 150%; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;A means model is appropriate for unbalanced data like you have.&amp;nbsp; You fit only the interaction (no main effects), and construct contrasts/estimates/lsmestimates to get at the questions of interest.&amp;nbsp; It is really possible I have misinterpreted what you want to do here.&amp;nbsp; For instance, I might ask what information the biomarker in group A at enrollment provides-is there interest in comparing biomarker levels within group A to the enrollment value? Time 1 to Time 2?&amp;nbsp; If there are, you may want to replace the LSMESTIMATE statement with the following LSMEANS statement:&lt;BR /&gt;LSMEANS time*group/diff;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 150%; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Lastly, how confident are you that the errors are normally distributed? Many biomarkers, especially those in blood, have errors that are proportional to the observed value.&amp;nbsp; If that is the case, you may want to consider switching to PROC GLIMMIX and specifying a log-normal distribution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 150%; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;SteveDenham&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 19:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-asymmetrical-design/m-p/636657#M30476</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-04-01T19:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIXED asymmetrical design</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-asymmetrical-design/m-p/636793#M30478</link>
      <description>&lt;P&gt;Thank you once again for the quick reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am interested in both differences between group A and B at time 1 and 2, and the change from time 1 to 2 in each group. I also want to evaluate the change from time 0 to 1 in group A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have log transformed my biomarker data, is this sufficient? Or would you still recommend using PROC GLIMMIX ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added some&amp;nbsp;&lt;SPAN&gt;LSMESTIMATE&amp;nbsp;statements which give me the estimates I am interested in (this gives the same estimates as using the LSMEANS time*group/diff statement).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC MIXED DATA=long;&lt;BR /&gt;CLASS id group time;&lt;BR /&gt;MODEL biomarker=time*group/ CL DDFM=KR2 VCIRY OUTPM=fitmain RESIDUAL;&lt;BR /&gt;REPEATED time / SUBJECT=id(group) TYPE=UN R RCORR;&lt;BR /&gt;&lt;SPAN&gt;LSMESTIMATE&amp;nbsp;&lt;/SPAN&gt;time*group "B vs A at time 1" 0 1 0 -1 0 /cl;&lt;BR /&gt;&lt;SPAN&gt;LSMESTIMATE&amp;nbsp;&lt;/SPAN&gt;time*group "B vs A at time 2" 0 0 1 0 -1 /cl;&lt;BR /&gt;&lt;SPAN&gt;LSMESTIMATE&amp;nbsp;&lt;/SPAN&gt;time*group "A at time 1 vs time 0" 1 -1 0 0 0 /cl;&lt;BR /&gt;&lt;SPAN&gt;LSMESTIMATE&amp;nbsp;&lt;/SPAN&gt;mate time*group "A at time 2 vs time 1" 0 -1 1 0 0/cl;&lt;BR /&gt;&lt;SPAN&gt;LSMESTIMATE&amp;nbsp;&lt;/SPAN&gt;time*group "B at time 2 vs time 1" 0 0 0 -1 1 / cl;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am still puzzled. I see that for group A, the mean biomarker value decreases over time. However, in the PROC MIXED model, I get an increase in the biomarker estimates between time 1 and 2 in group A. Any idea what could cause this? I have tried to fit different covariance structures, and the&amp;nbsp;&lt;SPAN&gt;AICC was smallest with the unstructured covariance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Means.jpg" style="width: 498px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37668iAA3221664D813597/image-dimensions/498x374?v=v2" width="498" height="374" role="button" title="Means.jpg" alt="Means.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Estimates.jpg" style="width: 621px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37669iFCCA4A8F9D633EFB/image-dimensions/621x165?v=v2" width="621" height="165" role="button" title="Estimates.jpg" alt="Estimates.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Jules&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 07:30:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-asymmetrical-design/m-p/636793#M30478</guid>
      <dc:creator>-Jules</dc:creator>
      <dc:date>2020-04-02T07:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIXED asymmetrical design</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-asymmetrical-design/m-p/636847#M30480</link>
      <description>&lt;P&gt;Ugh.&amp;nbsp; What you are seeing is the difference between the marginal means (lsmeans) and the raw means.&amp;nbsp; The lsmeans provide the best solution to the data as a whole, and in this case I think it is being driven by the values at enrollment in group A.&amp;nbsp; I don't see a good way out of it when you analyze all of the data.&amp;nbsp; One thing I forgot is the NOINT option on the model statement - it is handy for the means model so that the Solution Table gives the values (in the log space here) rather than the deviations from the reference group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as GLIMMIX vs. log-transformed in MIXED, I think what you are doing in MIXED is the equivalent of declaring a log normal distribution in GLIMMIX, where the error term is integrated out as it is independent of the fixed effects.&amp;nbsp; If you are curious as to the comparison (and you aren't under a time crunch), consider comparing the results.&amp;nbsp; Then try running GLIMMIX with the default normal distribution, but with a log link.&amp;nbsp; I'm off to run a quick comparison myself using one of the examples in the GLIMMIX documentation. I'll report back what I find.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 11:58:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-asymmetrical-design/m-p/636847#M30480</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-04-02T11:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIXED asymmetrical design</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-asymmetrical-design/m-p/636851#M30481</link>
      <description>&lt;P&gt;Comparison says GLIMMIX with a lognormal distribution = MIXED with data log transformed.&amp;nbsp; Using a log link on the default normal gives a different fixed effect solution vector.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 12:11:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-asymmetrical-design/m-p/636851#M30481</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-04-02T12:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIXED asymmetrical design</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-asymmetrical-design/m-p/636870#M30485</link>
      <description>&lt;P&gt;I see, thank you for your help!&lt;/P&gt;&lt;P&gt;And thank you also for the NOINT tip, it is very neat.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will check out the differences using GLIMMIX if I have time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Jules&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 13:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-asymmetrical-design/m-p/636870#M30485</guid>
      <dc:creator>-Jules</dc:creator>
      <dc:date>2020-04-02T13:43:07Z</dc:date>
    </item>
  </channel>
</rss>

