<?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: Stopped because of too many likelihood evaluations in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Stopped-because-of-too-many-likelihood-evaluations/m-p/315931#M16644</link>
    <description>&lt;P&gt;The fact that your subjects are not measured at the same timepoints complicates things immensely.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks to me as if you are trying to fit BMI to time_interval, but that there is something unusual about the pre-intervention values. &amp;nbsp;Using an unstructured covariance matrix with so many time_interval values, and with not every subject at those times leads to definite convergence problems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If all of your data looks like this for the first two IDs, I might consider recoding time_interval to something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;if time_interval&amp;lt;=0 then era=0;&lt;/P&gt;
&lt;P&gt;if 0&amp;lt;time_interval&amp;lt;=10 then era=1;&lt;/P&gt;
&lt;P&gt;if 10&amp;lt;time_interval&amp;lt;20 then era=2;&lt;/P&gt;
&lt;P&gt;...more like this if needed...&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I would try to fit the following model:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc mixed data = want  plots= (Maxpoints=none);
class ID  era ;
model      BMI=  era /solution residual outpm=marg outp=cond vciry 
influence(iter=0 effect=ID est) ;
random intercept/subject=ID;
repeated era /subject=ID type=ARH(1) g gcorr;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now if you really don't like aggregating time_interval like this, I would suggest fitting some sort of spline, using the EFFECT statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&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>Thu, 01 Dec 2016 13:27:44 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2016-12-01T13:27:44Z</dc:date>
    <item>
      <title>Stopped because of too many likelihood evaluations</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Stopped-because-of-too-many-likelihood-evaluations/m-p/314196#M16544</link>
      <description>&lt;P&gt;Hi everybody ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a longitudinal data on Body Mass Index BMI &amp;nbsp;before and after medical intervention . I am running a mixed model that accounts for time interval between date of measurement &amp;nbsp;and the date of &amp;nbsp;intervention. I also included an interaction term.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the data looks like this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID &amp;nbsp; &amp;nbsp; &amp;nbsp; BMI &amp;nbsp; &amp;nbsp; &amp;nbsp;Time_interval &amp;nbsp;Time&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 29 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;-10 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Before&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 30 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; After&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 30.5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; After&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 30.1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Before&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 29.5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; After&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 28.7 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 18 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;After&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The model I used :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ods graphics on;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Proc mixed data = have &amp;nbsp;plots= (Maxpoints=none);&lt;/P&gt;&lt;P&gt;class ID Time ;&lt;BR /&gt;model &amp;nbsp; &amp;nbsp; &amp;nbsp;BMI= &amp;nbsp;Time Time_interval &amp;nbsp;&lt;SPAN&gt;Time*Time_interval&lt;/SPAN&gt; &amp;nbsp;/solution residual outpm=marg outp=cond vciry&amp;nbsp;&lt;BR /&gt;influence(iter=0 effect=ID est) ;&lt;BR /&gt;random Time&amp;nbsp;&lt;SPAN&gt;Time_interval&lt;/SPAN&gt; /subject=pat_mrn_id type=UN g gcorr;&lt;BR /&gt;run;&lt;BR /&gt;ods graphics off;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I keep receiving this message :&lt;/P&gt;&lt;P&gt;"Stopped because of too many likelihood evaluations"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any ideas ?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 03:18:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Stopped-because-of-too-many-likelihood-evaluations/m-p/314196#M16544</guid>
      <dc:creator>Jordani</dc:creator>
      <dc:date>2016-11-25T03:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Stopped because of too many likelihood evaluations</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Stopped-because-of-too-many-likelihood-evaluations/m-p/315931#M16644</link>
      <description>&lt;P&gt;The fact that your subjects are not measured at the same timepoints complicates things immensely.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks to me as if you are trying to fit BMI to time_interval, but that there is something unusual about the pre-intervention values. &amp;nbsp;Using an unstructured covariance matrix with so many time_interval values, and with not every subject at those times leads to definite convergence problems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If all of your data looks like this for the first two IDs, I might consider recoding time_interval to something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;if time_interval&amp;lt;=0 then era=0;&lt;/P&gt;
&lt;P&gt;if 0&amp;lt;time_interval&amp;lt;=10 then era=1;&lt;/P&gt;
&lt;P&gt;if 10&amp;lt;time_interval&amp;lt;20 then era=2;&lt;/P&gt;
&lt;P&gt;...more like this if needed...&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I would try to fit the following model:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc mixed data = want  plots= (Maxpoints=none);
class ID  era ;
model      BMI=  era /solution residual outpm=marg outp=cond vciry 
influence(iter=0 effect=ID est) ;
random intercept/subject=ID;
repeated era /subject=ID type=ARH(1) g gcorr;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now if you really don't like aggregating time_interval like this, I would suggest fitting some sort of spline, using the EFFECT statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&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>Thu, 01 Dec 2016 13:27:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Stopped-because-of-too-many-likelihood-evaluations/m-p/315931#M16644</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-12-01T13:27:44Z</dc:date>
    </item>
  </channel>
</rss>

