<?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: Convergence issue in PROC MIXED with REPEATED statement in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Convergence-issue-in-PROC-MIXED-with-REPEATED-statement/m-p/751564#M36556</link>
    <description>&lt;P&gt;It works! Do you mind explaining the rationale behind it? I'm just not sure if I can fully understand the SAS documentation. Thanks!!&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jul 2021 20:07:03 GMT</pubDate>
    <dc:creator>kivanvan</dc:creator>
    <dc:date>2021-07-01T20:07:03Z</dc:date>
    <item>
      <title>Convergence issue in PROC MIXED with REPEATED statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convergence-issue-in-PROC-MIXED-with-REPEATED-statement/m-p/751309#M36536</link>
      <description>&lt;P&gt;I have a convergence issue in my linear mixed effect model using REPEATED statement in PROC MIXED. It first came up when I used original dependent variable that I later found its problem in normality, so I log transformed the data. After the log transformation, the convergence issue was solved under VC matrix, and I was trying to find the best covariance matrix. Then I realized that not all the matrices converge. I tried VC, UN, CS, AR(1), and TOEP. Only VC, UN, and TOEP converged. I got "WARNING: Stopped because of infinite likelihood." in my output for other matrices.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;My data has 5 repeated measures, but the number of sample size decreased from 2000+ at baseline to 10 in the last visit. I used the whole data to run the model. That's one thing I can think of that might be related. I tried to exclude the last two visits and there were no problem with convergence.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another thing is that the correlation coefficients are not monotone over repeated measures. I will show a screenshot of correlation matrix from UN so that you can have an idea about it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code for UN matrix:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC MIXED DATA=DF METHOD=REML;
 CLASS ID FOLLOWUP EXPOSURE;
 MODEL OUTCOME_LOG= EXPOSURE FOLLOWUP EXPOSURE*FOLLOWUP / SOLUTION CHISQ DDFM=KR;
 REPEATED FOLLOWUP / SUBJECT=ID TYPE=UN R RCORR;
 ODS SELECT ModelInfo NObs CorrB ConvergenceStatus FitStatistics;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The correlation matrix from UN:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="corrmatrix.png" style="width: 322px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60861i42BB91F6A74784DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="corrmatrix.png" alt="corrmatrix.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still want to keep all visits in the model if possible. Is there any idea of what can possible cause the problem of model not converging and how I can solve it? Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 17:01:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convergence-issue-in-PROC-MIXED-with-REPEATED-statement/m-p/751309#M36536</guid>
      <dc:creator>kivanvan</dc:creator>
      <dc:date>2021-06-30T17:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Convergence issue in PROC MIXED with REPEATED statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convergence-issue-in-PROC-MIXED-with-REPEATED-statement/m-p/751434#M36538</link>
      <description>&lt;P&gt;That odd correlation between the first and last timepoint is likely the source of the infinite likelihood for CS and AR(1).&amp;nbsp; CS assumes identical covariances between all of the timepoints, and AR(1) assumes a monotonic correlation of the errors.&amp;nbsp; The only way I see around this is dropping at least that last timepoint for these structures, which you have done.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, you have VC, TOEP and UN that converged.&amp;nbsp; Which gives you the best corrected AIC?&amp;nbsp; The fact that you got the UN structure to converge says a lot.&amp;nbsp; Sometimes the simplest model is NOT the best fit, and no amount of tinkering can get a square peg into a truly round whole unless you give up something that defines squareness.&amp;nbsp; Here, I think it would mean giving up at least one timepoint.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 12:27:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convergence-issue-in-PROC-MIXED-with-REPEATED-statement/m-p/751434#M36538</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-07-01T12:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Convergence issue in PROC MIXED with REPEATED statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convergence-issue-in-PROC-MIXED-with-REPEATED-statement/m-p/751438#M36539</link>
      <description>&lt;P&gt;What happens if you add the singular=1e-10 option in the MODEL statement in PROC MIXED?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if it does not help, I would go with the UN or TOEP structure (depending on which one fits your data better) using all data. If some covariance structures do not give you a convergence, maybe those structures are not appropriate for your data.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 12:45:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convergence-issue-in-PROC-MIXED-with-REPEATED-statement/m-p/751438#M36539</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2021-07-01T12:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Convergence issue in PROC MIXED with REPEATED statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convergence-issue-in-PROC-MIXED-with-REPEATED-statement/m-p/751562#M36555</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks SteveDenham! The UN has the best AIC, but for my another exposure (with the same outcome), I only get VC and TOEP converged, which makes it a little tricky to me as I want to use the same matrix for both of them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My strategy is to use a simple model to decide the covariance matrix and then add all the covariates to the model, but I never know if it's a good strategy.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 20:02:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convergence-issue-in-PROC-MIXED-with-REPEATED-statement/m-p/751562#M36555</guid>
      <dc:creator>kivanvan</dc:creator>
      <dc:date>2021-07-01T20:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Convergence issue in PROC MIXED with REPEATED statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convergence-issue-in-PROC-MIXED-with-REPEATED-statement/m-p/751564#M36556</link>
      <description>&lt;P&gt;It works! Do you mind explaining the rationale behind it? I'm just not sure if I can fully understand the SAS documentation. Thanks!!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 20:07:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convergence-issue-in-PROC-MIXED-with-REPEATED-statement/m-p/751564#M36556</guid>
      <dc:creator>kivanvan</dc:creator>
      <dc:date>2021-07-01T20:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Convergence issue in PROC MIXED with REPEATED statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convergence-issue-in-PROC-MIXED-with-REPEATED-statement/m-p/751570#M36558</link>
      <description>&lt;P&gt;Sometimes the default singularity criterion might be too strict and relaxing the criterion might help. This can be the case when the message you get is "Warning:&amp;nbsp;&lt;SPAN&gt;Stopped because of infinite likelihood". You need to be careful not to relax the criterion too much though.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 21:13:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convergence-issue-in-PROC-MIXED-with-REPEATED-statement/m-p/751570#M36558</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2021-07-01T21:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Convergence issue in PROC MIXED with REPEATED statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convergence-issue-in-PROC-MIXED-with-REPEATED-statement/m-p/751598#M36559</link>
      <description>&lt;P&gt;That's exactly the message I got. Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 00:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convergence-issue-in-PROC-MIXED-with-REPEATED-statement/m-p/751598#M36559</guid>
      <dc:creator>kivanvan</dc:creator>
      <dc:date>2021-07-02T00:15:02Z</dc:date>
    </item>
  </channel>
</rss>

