<?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: Interpreting fit statistics in proc glimmix with a binary outcome and G+R side random effects in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-fit-statistics-in-proc-glimmix-with-a-binary/m-p/903168#M44798</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;-2 Res Log Pseudo-Likelihood : The likelihood is preceded by the word “Pseudo” to indicate that it is computed from a pseudo-likelihood, rather than the true likelihood.&lt;/LI&gt;
&lt;LI&gt;Gener. Chi-Square / DF : The ratio of the generalized chi-square statistic and its degrees of freedom should be close to 1. This would indicate that the variability in your data has been properly modeled, and that there is no residual overdispersion.&lt;/LI&gt;
&lt;LI&gt;Generalized Chi-Square : The generalized chi-square statistic is a quadratic form in the marginal residuals that takes correlations among the data into account.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;BR, Koen&lt;/P&gt;</description>
    <pubDate>Wed, 15 Nov 2023 11:03:09 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2023-11-15T11:03:09Z</dc:date>
    <item>
      <title>Interpreting fit statistics in proc glimmix with a binary outcome and G+R side random effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-fit-statistics-in-proc-glimmix-with-a-binary/m-p/903150#M44796</link>
      <description>&lt;P&gt;Hi everyone, I am a non-statistician looking for some advice on how to intepret the fit statistics in proc glimmix.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am computing odds ratios for an event (0/1) over time in the same individuals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data looks something like this:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="20%" height="30px"&gt;ID&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;period&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;outcome&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;season&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;prev_treated&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="30px"&gt;1&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;1&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;0&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;3&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="30px"&gt;1&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;2&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;0&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;4&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="30px"&gt;1&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;3&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;1&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;1&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="30px"&gt;1&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;4&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;1&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;2&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="30px"&gt;2&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;1&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;0&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;2&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="30px"&gt;2&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;2&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;1&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;3&lt;/TD&gt;
&lt;TD width="20%" height="30px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might be worth adding that the share of observations in which outcome=1 is small, approx 10-20%.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The current model looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data = data1 method=rspl plots=oddsratio;
class ID period(ref="1") season prev_treated;
model outcome(event="1")= period season prev_treated / dist=binary link=logit oddsratio s;
random intercept / subject=id;
random period/subject=id residual type=AR(1);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have two questions :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Is there any way, based on this information, to determine which method should be used (RSPL, RMPL, MSPL, MMPL)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) In relation to 1), how do I interpret the Fit statistics table:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;-2 res log pseudolikelihood&lt;/LI&gt;
&lt;LI&gt;Generalized Chi-Square&lt;/LI&gt;
&lt;LI&gt;Gener. Chi-Square/DF&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Meaning can it be used like AIC, where lower is better, for example when specifyiung different methods in the method= statement or&amp;nbsp; covariance structures in the type= statement. (AR(1), ARMA (1,1) and TOEP are of interest).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also feel free to comment on the model, if you have other suggestions.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 10:10:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-fit-statistics-in-proc-glimmix-with-a-binary/m-p/903150#M44796</guid>
      <dc:creator>ha33</dc:creator>
      <dc:date>2023-11-15T10:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting fit statistics in proc glimmix with a binary outcome and G+R side random effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-fit-statistics-in-proc-glimmix-with-a-binary/m-p/903168#M44798</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;-2 Res Log Pseudo-Likelihood : The likelihood is preceded by the word “Pseudo” to indicate that it is computed from a pseudo-likelihood, rather than the true likelihood.&lt;/LI&gt;
&lt;LI&gt;Gener. Chi-Square / DF : The ratio of the generalized chi-square statistic and its degrees of freedom should be close to 1. This would indicate that the variability in your data has been properly modeled, and that there is no residual overdispersion.&lt;/LI&gt;
&lt;LI&gt;Generalized Chi-Square : The generalized chi-square statistic is a quadratic form in the marginal residuals that takes correlations among the data into account.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;BR, Koen&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 11:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-fit-statistics-in-proc-glimmix-with-a-binary/m-p/903168#M44798</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-11-15T11:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting fit statistics in proc glimmix with a binary outcome and G+R side random effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-fit-statistics-in-proc-glimmix-with-a-binary/m-p/903225#M44799</link>
      <description>&lt;P&gt;The covariance structure may be too complicated for binary data. If you are having trouble with convergence, then drop the R-side fit and see if that helps. Also switching the optimization to NRRIDG can help as well. Using LAPLACE or QUADRATURE gives you models you can compare, using the fit statistics.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 14:28:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-fit-statistics-in-proc-glimmix-with-a-binary/m-p/903225#M44799</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2023-11-15T14:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting fit statistics in proc glimmix with a binary outcome and G+R side random effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-fit-statistics-in-proc-glimmix-with-a-binary/m-p/903227#M44800</link>
      <description>&lt;P&gt;Unfortunately there are no good ways that I am aware of to do what you asked for with your model.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 14:50:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-fit-statistics-in-proc-glimmix-with-a-binary/m-p/903227#M44800</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2023-11-15T14:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting fit statistics in proc glimmix with a binary outcome and G+R side random effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-fit-statistics-in-proc-glimmix-with-a-binary/m-p/903657#M44827</link>
      <description>&lt;P&gt;Just a quick comment on covariance structure selection. If you use any of the pseudo-likelihood methods, the information criteria probably should not be used for selection, as the pseudo-likelihood estimates aren't the same under various structures. Thus&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/92458"&gt;@StatsMan&lt;/a&gt;&amp;nbsp;'s comments re LAPLACE or QUADRATURE. If you truly want to use pseudo-likelihood methods, then probably the best you can do for covariance structure selection is look at the&amp;nbsp;&lt;SPAN&gt;Gener. Chi-Square / DF value, and pick the structure that has the least over- or under-dispersion. You should note that this measure will get closer to 1 the more variables are estimated, and there is no penalization for this as there is for the information criteria, so "Caveat emptor" - let the user (buyer) beware.&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>Fri, 17 Nov 2023 14:34:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-fit-statistics-in-proc-glimmix-with-a-binary/m-p/903657#M44827</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2023-11-17T14:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting fit statistics in proc glimmix with a binary outcome and G+R side random effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-fit-statistics-in-proc-glimmix-with-a-binary/m-p/904713#M44898</link>
      <description>&lt;P&gt;I read a paper stated that the criteria "&lt;SPAN&gt;Gener. Chi-Square / DF =1 " does not work for generalized linear mixed model when the model has random effects.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 19:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-fit-statistics-in-proc-glimmix-with-a-binary/m-p/904713#M44898</guid>
      <dc:creator>RosieSAS</dc:creator>
      <dc:date>2023-11-27T19:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting fit statistics in proc glimmix with a binary outcome and G+R side random effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-fit-statistics-in-proc-glimmix-with-a-binary/m-p/905366#M44932</link>
      <description>&lt;P&gt;Would a two step method be a possibility? Step 1: Use LAPLACE or QUAD (if you have enough data) to fit the RANDOM effects, and output the variance/covariance parameter estimates to a dataset. This would enable selection of an error structure with the smallest corrected AIC. Step 2.Fit your current model using the pseudolikelihood method and a residual R side effect for the repeated factor. You could use the values obtained in the first step as starting values in a PARMS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;NOTE WELL: THIS IS UNTESTED AND THERE IS NO GUARANTEE THAT IT WILL SOLVE THE PROBLEM&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, you should consider that since this is a GLMM with a binary distribution the best approach may be to do this all as a G side analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 14:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-fit-statistics-in-proc-glimmix-with-a-binary/m-p/905366#M44932</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2023-11-30T14:55:01Z</dc:date>
    </item>
  </channel>
</rss>

