<?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 compare mixed models with proc glimmix in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-compare-mixed-models-with-proc-glimmix/m-p/373956#M19581</link>
    <description>&lt;P&gt;IVM is correct if the modeling is done in MIXED or if you are using GLIMMIX with normal errors. &amp;nbsp;If you have binary data, though, the default estimation uses pseudo-likelihood methods so direct comparisons of the likelihoods and likelihood based statistics between competing models is not advisable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you switch to METHOD=LAPLACE or METHOD=QUAD, then a direct comparison can be made.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See&amp;nbsp;&lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=statug_glimmix_details76.htm&amp;amp;locale=en" target="_self"&gt;the Fit Statistics section&lt;/A&gt;&amp;nbsp;of the PROC GLIMMIX documentation for details.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2017 13:19:12 GMT</pubDate>
    <dc:creator>StatsMan</dc:creator>
    <dc:date>2017-07-07T13:19:12Z</dc:date>
    <item>
      <title>How do I compare mixed models with proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-compare-mixed-models-with-proc-glimmix/m-p/371915#M19524</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I am using SAS 9.4.&lt;/P&gt;&lt;P&gt;I have fit&amp;nbsp;three, &amp;nbsp;2-level model to my data set using Proc&amp;nbsp;glimmix. as follows:&lt;/P&gt;&lt;P&gt;The&amp;nbsp;outcome(Diabetes) and&amp;nbsp; the covariate "bp"&amp;nbsp;are binary variables.&lt;/P&gt;&lt;P&gt;Fitted models are :&lt;/P&gt;&lt;P&gt;1- full model with random intercept (A)&lt;/P&gt;&lt;P&gt;2- Full model with both random intercept and random slope(A1)&lt;/P&gt;&lt;P&gt;3- Model A2: excluding the intercation term from fixed level 1 covariates&lt;/P&gt;&lt;P&gt;I just wonder how can I compare these three models usyng SAS and &amp;nbsp;tell which model fits better and are more significant&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate it very much for your help,&lt;/P&gt;&lt;P&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&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;&lt;PRE&gt;&lt;BR /&gt;ods output fitstatistics=fitA;
title "Model A,random intercept+fixed interactions";
proc glimmix data=data1 noclprint;
class group bp ;
model DIABETES = bmi bp bmi*bp/ solution link=logit dist=binary ddfm=satterthwaite ;
random intercept / type=un subject=group;
weight WEIGHT;
format bp bp.;
format DIABETES DIABETES.;
run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ods output fitstatistics=fitA1;&lt;BR /&gt;title "Model A,random intercept+fixed interactions";&lt;BR /&gt;proc glimmix data=data1 noclprint;&lt;BR /&gt;class group bp ;&lt;BR /&gt;model DIABETES = bmi bp bmi*bp/ solution link=logit dist=binary ddfm=satterthwaite ;&lt;BR /&gt;random intercept bmi/ type=un subject=group;&lt;BR /&gt;weight WEIGHT;&lt;BR /&gt;covtest "random slope" . 0 0;&lt;BR /&gt;format bp bp.;&lt;BR /&gt;format DIABETES DIABETES.;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;ods output fitstatistics=fitA2;&lt;BR /&gt;title "Model A,random intercept+fixed interactions";&lt;BR /&gt;proc glimmix data=data1 noclprint;&lt;BR /&gt;class group bp ;&lt;BR /&gt;model DIABETES = bmi bp / solution link=logit dist=binary ddfm=satterthwaite ;&lt;BR /&gt;random intercept / type=un subject=group;&lt;BR /&gt;weight WEIGHT;&lt;BR /&gt;format bp bp.;&lt;BR /&gt;format DIABETES DIABETES.;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 21:15:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-compare-mixed-models-with-proc-glimmix/m-p/371915#M19524</guid>
      <dc:creator>suzan</dc:creator>
      <dc:date>2017-06-29T21:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare mixed models with proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-compare-mixed-models-with-proc-glimmix/m-p/373490#M19543</link>
      <description>&lt;P&gt;You can compare AIC or AICC values for models that differ only in the random effects, when using the default REML estimation. You cannot do this for models that differ in the fixed effects. If you want to use likelihood-based comparison methods, use method=mspl in the GLIMMIX statement, which will get you ML estimation. However, ML estimation can give biased estimates of variances, which affects test statistics, etc. The bias could be small with a very large data set, but large with a small data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Editor's note: &lt;A href="https://communities.sas.com/t5/SAS-Statistical-Procedures/How-do-I-compare-mixed-models-with-proc-glimmix/m-p/373956#M19581" target="_self"&gt;see also the clarifications&lt;/A&gt; by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/92458"&gt;@StatsMan&lt;/a&gt;&amp;nbsp;in a later&amp;nbsp;reply:&lt;/EM&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;IVM is correct if the modeling is done in MIXED or if you are using GLIMMIX with normal errors. &amp;nbsp;If you have binary data, though, the default estimation uses pseudo-likelihood methods so direct comparisons of the likelihoods and likelihood based statistics between competing models is not advisable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you switch to METHOD=LAPLACE or METHOD=QUAD, then a direct comparison can be made.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See&amp;nbsp;&lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=statug_glimmix_details76.htm&amp;amp;locale=en" target="_self" rel="nofollow noopener noreferrer"&gt;the Fit Statistics section&lt;/A&gt;&amp;nbsp;of the PROC GLIMMIX documentation for details.&lt;/P&gt;
&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 14:34:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-compare-mixed-models-with-proc-glimmix/m-p/373490#M19543</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2017-07-07T14:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare mixed models with proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-compare-mixed-models-with-proc-glimmix/m-p/373805#M19579</link>
      <description>&lt;P&gt;Thank you &amp;nbsp;very much. It was really&amp;nbsp;helpful.&lt;/P&gt;&lt;P&gt;Have&amp;nbsp;tried &amp;nbsp;your solution. &amp;nbsp;I just wonder after adding this option into my each an every model what should I expect to see differently in the output.(I noticed that for each model, fit statistics [-2 log likelihood] is&amp;nbsp;changed after adding the mspl option) .&lt;/P&gt;&lt;P&gt;My undersanding is that I have&amp;nbsp;&amp;nbsp;to compare this part of analysis for all models.Sorry for&amp;nbsp;such a question! I am a begginer !&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 23:44:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-compare-mixed-models-with-proc-glimmix/m-p/373805#M19579</guid>
      <dc:creator>suzan</dc:creator>
      <dc:date>2017-07-06T23:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare mixed models with proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-compare-mixed-models-with-proc-glimmix/m-p/373956#M19581</link>
      <description>&lt;P&gt;IVM is correct if the modeling is done in MIXED or if you are using GLIMMIX with normal errors. &amp;nbsp;If you have binary data, though, the default estimation uses pseudo-likelihood methods so direct comparisons of the likelihoods and likelihood based statistics between competing models is not advisable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you switch to METHOD=LAPLACE or METHOD=QUAD, then a direct comparison can be made.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See&amp;nbsp;&lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=statug_glimmix_details76.htm&amp;amp;locale=en" target="_self"&gt;the Fit Statistics section&lt;/A&gt;&amp;nbsp;of the PROC GLIMMIX documentation for details.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 13:19:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-compare-mixed-models-with-proc-glimmix/m-p/373956#M19581</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2017-07-07T13:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare mixed models with proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-compare-mixed-models-with-proc-glimmix/m-p/373990#M19592</link>
      <description>&lt;P&gt;Yes, it is important to use method=laplace or method=quad for binary or binomial data. (I missed that you were dealing with binary). Both laplace and quad &lt;STRONG&gt;are&lt;/STRONG&gt; maximum likelihood methods, so the principles I mentioned still hol. Use method=mspl for this purpose for normal distributions if you want to compare likelihoods (or the AIC and AICC statistics).&lt;/P&gt;
&lt;P&gt;A general rule is the smaller the AIC, the better the fit. You want a change in AIC of at least 2 to consider this a better fit.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 14:53:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-compare-mixed-models-with-proc-glimmix/m-p/373990#M19592</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2017-07-07T14:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare mixed models with proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-compare-mixed-models-with-proc-glimmix/m-p/374069#M19596</link>
      <description>&lt;P&gt;Many thanks for your guidance.&amp;nbsp;It helped big time&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 19:08:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-compare-mixed-models-with-proc-glimmix/m-p/374069#M19596</guid>
      <dc:creator>suzan</dc:creator>
      <dc:date>2017-07-07T19:08:11Z</dc:date>
    </item>
  </channel>
</rss>

