<?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: Diagnostics for mixed effects logistic regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Diagnostics-for-mixed-effects-logistic-regression/m-p/671126#M32077</link>
    <description>&lt;P&gt;Thanks. I'll try that, along with other transformations (e.g. square root). I suppose we could use something like an AIC value to judge if the model with the transformed variable is better than the untransformed?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I imagine we could also just use sgplot to plot a loess cuve in the residual plot? Thanks again.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jul 2020 17:05:13 GMT</pubDate>
    <dc:creator>jgreenberg321</dc:creator>
    <dc:date>2020-07-21T17:05:13Z</dc:date>
    <item>
      <title>Diagnostics for mixed effects logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Diagnostics-for-mixed-effects-logistic-regression/m-p/671076#M32066</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am fitting a mixed effects logistic regression model using proc glimmix to model post-operative surgical complications. I am interested in running model diagnostics, particularly to evaluate for any significant non-linearity in continuous predictors (e.g. relationship between age and log-odds of the outcome). I have had difficulty generating relevant plots using the glimmix procedure. Does anyone have any experience with this, or know of any good reference articles that might be helpful? All of the usefulf articles I've found on mixed effect model diagnostics in SAS are for linear models. For reference, my code setup is below. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;=test &lt;SPAN class="s2"&gt;method&lt;/SPAN&gt;=laplace;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;class&lt;/SPAN&gt; hospitalid Race_Group insurance female proc_type;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;model&lt;/SPAN&gt; complication (&lt;SPAN class="s2"&gt;event&lt;/SPAN&gt;=&lt;SPAN class="s3"&gt;'1'&lt;/SPAN&gt;) = age comorbidity_index Race_Group insurance female proc_type/&lt;SPAN class="s2"&gt;S&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;CL&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;DIST&lt;/SPAN&gt;=binary &lt;SPAN class="s2"&gt;link&lt;/SPAN&gt;=logit ;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;output&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;out&lt;/SPAN&gt;=out &lt;SPAN class="s2"&gt;pred&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;noblup&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;ilink&lt;/SPAN&gt;)=expected_prob &lt;SPAN class="s2"&gt;pred&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;blup&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;ilink&lt;/SPAN&gt;)=predicted_prob;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;random&lt;/SPAN&gt; intercept/&lt;SPAN class="s2"&gt;subject&lt;/SPAN&gt;=hospitalid_index ;&lt;/P&gt;&lt;P class="p2"&gt;covtest&lt;SPAN class="s4"&gt;/&lt;/SPAN&gt;wald&lt;SPAN class="s4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN class="s4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 15:33:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Diagnostics-for-mixed-effects-logistic-regression/m-p/671076#M32066</guid>
      <dc:creator>jgreenberg321</dc:creator>
      <dc:date>2020-07-21T15:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Diagnostics for mixed effects logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Diagnostics-for-mixed-effects-logistic-regression/m-p/671092#M32067</link>
      <description>&lt;P&gt;If you are worried about polynomial effects, for example is Age**2 a good predictor, you can simply put it into the model and see if it produces a significant effect. For more general&amp;nbsp;&lt;SPAN&gt;non-linearity, you might have to look at the Pearson residuals plotted against Age.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 16:11:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Diagnostics-for-mixed-effects-logistic-regression/m-p/671092#M32067</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-07-21T16:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Diagnostics for mixed effects logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Diagnostics-for-mixed-effects-logistic-regression/m-p/671126#M32077</link>
      <description>&lt;P&gt;Thanks. I'll try that, along with other transformations (e.g. square root). I suppose we could use something like an AIC value to judge if the model with the transformed variable is better than the untransformed?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I imagine we could also just use sgplot to plot a loess cuve in the residual plot? Thanks again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 17:05:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Diagnostics-for-mixed-effects-logistic-regression/m-p/671126#M32077</guid>
      <dc:creator>jgreenberg321</dc:creator>
      <dc:date>2020-07-21T17:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Diagnostics for mixed effects logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Diagnostics-for-mixed-effects-logistic-regression/m-p/671397#M32088</link>
      <description>&lt;P&gt;Just to follow-up on this: do you happen to know how to conduct a likelihood ratio test using proc Glimmix? I see from the Glimmix documentation that is possible but I can't find any examples of exactly how to do that. That would be helpful for testing the need for a polynomial term.&amp;nbsp; Is that something that would be done through the "General" term? Example code is below.&amp;nbsp; Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;=test&amp;nbsp;&lt;SPAN class="s2"&gt;method&lt;/SPAN&gt;=laplace ;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;class&lt;/SPAN&gt; hospitalid Race_Group insurance female proc_group (&lt;SPAN class="s2"&gt;ref&lt;/SPAN&gt;=&lt;SPAN class="s3"&gt;'1'&lt;/SPAN&gt;);&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;model&lt;/SPAN&gt; major_comp (&lt;SPAN class="s2"&gt;event&lt;/SPAN&gt;=&lt;SPAN class="s3"&gt;'1'&lt;/SPAN&gt;) =age age_square confounder&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;Race_Group insurance female proc_group/&lt;SPAN class="s2"&gt;solution&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;CL&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;DIST&lt;/SPAN&gt;=binary &lt;SPAN class="s2"&gt;link&lt;/SPAN&gt;=logit&lt;SPAN class="s4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;random&lt;/SPAN&gt; intercept/&lt;SPAN class="s2"&gt;subject&lt;/SPAN&gt;=hospitalid;&lt;/P&gt;&lt;P class="p3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN class="s4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 14:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Diagnostics-for-mixed-effects-logistic-regression/m-p/671397#M32088</guid>
      <dc:creator>jgreenberg321</dc:creator>
      <dc:date>2020-07-22T14:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Diagnostics for mixed effects logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Diagnostics-for-mixed-effects-logistic-regression/m-p/671483#M32099</link>
      <description>&lt;P&gt;The type III tests for fixed effects are all likelihood ratio based/equivalent.&amp;nbsp; GLIMMIX has a COVTEST option that enables likelihood ratio tests for random effects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would tend to look at AICC values, rather than p values from the type III tests, to see if the enhanced model provided an improvement in the relative likelihood of retaining the information in the model with the smallest AICC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is behind a paywall, but is easily accessible for ASA members:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Stroup, W., Claassen, E. Pseudo-Likelihood or Quadrature? What We Thought We Knew, What We Think We Know, and What We Are Still Trying to Figure Out.&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;JABES&lt;/I&gt;&lt;SPAN&gt;&amp;nbsp;(2020). &lt;A href="https://doi.org/10.1007/s13253-020-00402-6" target="_blank"&gt;https://doi.org/10.1007/s13253-020-00402-6&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In this paper, the authors point out some advantages to using the default RSPL method as opposed to quadrature methods and talk a bit about graphical methods for checking assumptions (nothing really good).&amp;nbsp; The point here is that if you do switch to the default RSPL method, you will no longer get information criteria in the output.&amp;nbsp; You will need to run the model twice, saving the final -2 log likelihood from the full model and the nested model, and then calculate the log likelihood change (chi squared) and associated probability.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SteveDenham&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 17:33:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Diagnostics-for-mixed-effects-logistic-regression/m-p/671483#M32099</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-07-22T17:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Diagnostics for mixed effects logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Diagnostics-for-mixed-effects-logistic-regression/m-p/671904#M32123</link>
      <description>&lt;P&gt;Thank you for explaining. Just to make sure I understand, the type 3 fixed effects values are equivalent to the LR test (i.e. testing the model with vs. without the added variable)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fortunately in my example, the LR difference between models test aligns with the AIC change between the more complex and simpler models. Unfortunately, I was not able to access that paper, though can relate to the sentiment of lacking good measures for assumption checking.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 17:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Diagnostics-for-mixed-effects-logistic-regression/m-p/671904#M32123</guid>
      <dc:creator>jgreenberg321</dc:creator>
      <dc:date>2020-07-23T17:39:40Z</dc:date>
    </item>
  </channel>
</rss>

