<?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 do I get my models to converge using proc GLIMMIX? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-my-models-to-converge-using-proc-GLIMMIX/m-p/651964#M31313</link>
    <description>&lt;P&gt;&lt;SPAN&gt;"I suppose you could do a two-stage analysis. Stage 1 would be a logistic link analysis, with any 0 = 0 and any value&amp;gt;0 set to 1.&amp;nbsp; That would set a hurdle for the zero inflation.&amp;nbsp; Then fit the non-zero responses to the negbin distribution."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks! I tried the above suggestion, but noticed a large imbalance in days when dropping 0s to run the negbin distribution, with some participants having only 1 or 2 days of data while others many more (up to 21 days). And given this is a repeated measures design, I am not sure how well I could interpret the results. I also assume this method would require a two-stage interpretation&amp;nbsp;of the results?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will look into the second method you suggested. Thanks very much for your help!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 30 May 2020 12:28:42 GMT</pubDate>
    <dc:creator>Laian_N</dc:creator>
    <dc:date>2020-05-30T12:28:42Z</dc:date>
    <item>
      <title>How do I get my models to converge using proc GLIMMIX?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-my-models-to-converge-using-proc-GLIMMIX/m-p/651684#M31278</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS version 9.4 to examine the association between physical activity (PA) and alcohol consumption (AC) at between- and within-person levels over 21 days. The study design is multilevel with repeated measures, with days nested in individuals (253 individuals - 21 days/measurements). My time structure is days (21 days - 0,....,21). My outcome variable is AC (total drinks per day per individual - count data) and it follows a Poisson distribution (there is evidence of overdispersion, so I am trying to fit a negative binomial distribution). Predictors are average PA (person-specific average measures of PA centered at the grand mean)&amp;nbsp;and daily PA (person-centered).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue 1: The random intercept model converged fine but the model didn't fit the data very well.&lt;/P&gt;&lt;P&gt;Issue 2: When I added average PA, the model failed to converge.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried different types of covariance structures, but none seemed to work. I am wondering if the issue could be zero-inflation in the outcome variable, as 70% of my AC observations are 0? I found nothing on GLIMMIX dealing with zero-inflated negbin though, so I am wondering whether I need to use another procedure? Also, my PA variables are significantly positively skewed, so I am wondering if that could be a part of the issue and whether I need to transform the predictors? I'd very much appreciate any input, thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code I used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*random intercept model that converged but didn't fit the data very well*;&lt;/P&gt;&lt;P&gt;proc glimmix data=SHB.Days_final lognote plots=all;&lt;BR /&gt;class IDnum Days_c;&lt;BR /&gt;model AC = / solution dist=negbin;&lt;BR /&gt;random Days_c / subject=IDnum type=ar(1) residual;&lt;BR /&gt;nloptions maxiter=500;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;*model with predictor that did not converge*;&lt;/P&gt;&lt;P&gt;proc glimmix data=SHB.Days_final lognote plots=all;&lt;BR /&gt;class IDnum Days_c;&lt;BR /&gt;model AC = averagePA / solution dist=negbin;&lt;BR /&gt;random Days_c / subject=IDnum type=ar(1) residual;&lt;BR /&gt;nloptions maxiter=500;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 10:52:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-my-models-to-converge-using-proc-GLIMMIX/m-p/651684#M31278</guid>
      <dc:creator>Laian_N</dc:creator>
      <dc:date>2020-05-29T10:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get my models to converge using proc GLIMMIX?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-my-models-to-converge-using-proc-GLIMMIX/m-p/651718#M31284</link>
      <description>&lt;P&gt;Hi Laian,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the following versions of your two models:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*random intercept model*;

proc glimmix data=SHB.Days_final lognote plots=all;
class IDnum Days_c;
model AC = Days_c/ solution dist=negbin;
random intercept/subject=IDnum; 
random Days_c / subject=IDnum type=ar(1) residual;
nloptions maxiter=500;
run;

*model with predictor that did not converge*;

proc glimmix data=SHB.Days_final lognote plots=all;
class IDnum Days_c;
model AC = averagePA  Days_c/ solution dist=negbin;
random intercept/subject=IDnum;
random Days_c / subject=IDnum type=ar(1) residual;
nloptions maxiter=500;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The major differences are including Days_c in the model statement, so the repeated nature of the residuals you are modeling remove the fixed day effect, and including a second RANDOM statement that explicitly models a random intercept.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Give these a try.&amp;nbsp; If there is still a convergence problem, you may have identified the issue as zero-inflation.&amp;nbsp; I am sure somebody has figured a way to address this in a mixed model setting, but I'm coming up blank off the top of my head.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 13:48:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-my-models-to-converge-using-proc-GLIMMIX/m-p/651718#M31284</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-05-29T13:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get my models to converge using proc GLIMMIX?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-my-models-to-converge-using-proc-GLIMMIX/m-p/651812#M31298</link>
      <description>&lt;P&gt;Thanks for your speedy response! And yes, the models did converge, thank you, but the data does not appear to fit very well, which may be due to zero-inflation.&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 18:01:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-my-models-to-converge-using-proc-GLIMMIX/m-p/651812#M31298</guid>
      <dc:creator>Laian_N</dc:creator>
      <dc:date>2020-05-29T18:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get my models to converge using proc GLIMMIX?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-my-models-to-converge-using-proc-GLIMMIX/m-p/651839#M31303</link>
      <description>&lt;P&gt;I suppose you could do a two-stage analysis. Stage 1 would be a logistic link analysis, with any 0 = 0 and any value&amp;gt;0 set to 1.&amp;nbsp; That would set a hurdle for the zero inflation.&amp;nbsp; Then fit the non-zero responses to the negbin distribution.&amp;nbsp; More sophisticated would be to get the predicted value for each case as 0 or 1 from the logistic analysis, and then fit the negbin to the&lt;EM&gt; predicted 1&lt;/EM&gt; cases.&amp;nbsp; The key here is to look at various cutpoints for the classification (sensitivity analysis).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 19:16:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-my-models-to-converge-using-proc-GLIMMIX/m-p/651839#M31303</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-05-29T19:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get my models to converge using proc GLIMMIX?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-my-models-to-converge-using-proc-GLIMMIX/m-p/651964#M31313</link>
      <description>&lt;P&gt;&lt;SPAN&gt;"I suppose you could do a two-stage analysis. Stage 1 would be a logistic link analysis, with any 0 = 0 and any value&amp;gt;0 set to 1.&amp;nbsp; That would set a hurdle for the zero inflation.&amp;nbsp; Then fit the non-zero responses to the negbin distribution."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks! I tried the above suggestion, but noticed a large imbalance in days when dropping 0s to run the negbin distribution, with some participants having only 1 or 2 days of data while others many more (up to 21 days). And given this is a repeated measures design, I am not sure how well I could interpret the results. I also assume this method would require a two-stage interpretation&amp;nbsp;of the results?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will look into the second method you suggested. Thanks very much for your help!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 May 2020 12:28:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-my-models-to-converge-using-proc-GLIMMIX/m-p/651964#M31313</guid>
      <dc:creator>Laian_N</dc:creator>
      <dc:date>2020-05-30T12:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get my models to converge using proc GLIMMIX?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-my-models-to-converge-using-proc-GLIMMIX/m-p/652227#M31324</link>
      <description>&lt;P&gt;Well, so long as the drop out rate is not influenced by the predictors in the model, the mixed model approach is really pretty good in the face of imbalance.&amp;nbsp; You would probably want to look at the SOLUTION vector for the RANDOM statements to get an idea of how much the drop out is affecting the predicted values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 12:13:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-my-models-to-converge-using-proc-GLIMMIX/m-p/652227#M31324</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-06-01T12:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get my models to converge using proc GLIMMIX?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-my-models-to-converge-using-proc-GLIMMIX/m-p/652440#M31335</link>
      <description>&lt;P&gt;Thanks, Steve. I've found a few useful sources that may also be helpful for others to fit hurdle models or using proc NLMIXED to fit 2 or more distributions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Min, Y., &amp;amp; Agresti, A. (2005). Random effect models for repeated measures of zero-inflated count data. &lt;EM&gt;Statistical Modelling: An International Journal&lt;/EM&gt;, &lt;EM&gt;5&lt;/EM&gt;(1), 1–19. &lt;A href="https://doi.org/10.1191/1471082X05st084oa" target="_blank"&gt;https://doi.org/10.1191/1471082X05st084oa&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Zhu, H., Luo, S., &amp;amp; DeSantis, S. M. (2017). Zero-inflated count models for longitudinal measurements with heterogeneous random effects. &lt;EM&gt;Statistical Methods in Medical Research&lt;/EM&gt;, &lt;EM&gt;26&lt;/EM&gt;(4), 1774–1786. &lt;A href="https://doi.org/10.1177/0962280215588224" target="_blank"&gt;https://doi.org/10.1177/0962280215588224&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings17/0902-2017.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings17/0902-2017.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/kb/48/506.html" target="_blank"&gt;https://support.sas.com/kb/48/506.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://video.sas.com/detail/video/6096489321001/handling-excess-zeros-with-fmm-procedure-proc-fmm" target="_blank"&gt;https://video.sas.com/detail/video/6096489321001/handling-excess-zeros-with-fmm-procedure-proc-fmm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 06:50:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-my-models-to-converge-using-proc-GLIMMIX/m-p/652440#M31335</guid>
      <dc:creator>Laian_N</dc:creator>
      <dc:date>2020-06-02T06:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get my models to converge using proc GLIMMIX?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-my-models-to-converge-using-proc-GLIMMIX/m-p/652550#M31353</link>
      <description>&lt;P&gt;The Zhu et al. paper is what I was thinking about and&amp;nbsp;Robin&amp;nbsp;High is a tremendous source for NLMIXED approaches.&amp;nbsp; I beleive these were the two sources I was thinking about, but couldn't remember.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 14:13:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-my-models-to-converge-using-proc-GLIMMIX/m-p/652550#M31353</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-06-02T14:13:25Z</dc:date>
    </item>
  </channel>
</rss>

