<?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: Model Fit for Proc Gee in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Model-Fit-for-Proc-Gee/m-p/924042#M45912</link>
    <description>&lt;A href="https://blogs.sas.com/content/iml/2024/03/27/likelihood-ratio-test.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2024/03/27/likelihood-ratio-test.html&lt;/A&gt;</description>
    <pubDate>Fri, 12 Apr 2024 02:03:27 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-04-12T02:03:27Z</dc:date>
    <item>
      <title>Model Fit for Proc Gee</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Model-Fit-for-Proc-Gee/m-p/860978#M42557</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying&amp;nbsp;to calculate model fit for the two Proc GEE models below. I know I can calculate using QIC number and find for the lower number.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output GEEFitCriteria=fitcrit;
proc gee data=data;
	class subjectID var1 var2;
	model isBlockAcuteGap(event="1")= var1 var2/ dist=bin link=logit type3  ;
	repeated subject=subjectID ;
run;

ods output GEEFitCriteria=fitcrit2;
proc gee data=data;
	class subjectID var1 var2 var3;
	model isBlockAcuteGap(event="1")= var1 var2 var3 / dist=bin link=logit type3 wald;
	repeated subject=subjectID ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is there a way to statistically look for the difference&amp;nbsp;between these two models instead of just looking at the lower Qic number?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I don't know how to find a loglikelihood ratio for the model above.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&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>Mon, 27 Feb 2023 05:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Model-Fit-for-Proc-Gee/m-p/860978#M42557</guid>
      <dc:creator>twix17</dc:creator>
      <dc:date>2023-02-27T05:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Model Fit for Proc Gee</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Model-Fit-for-Proc-Gee/m-p/860990#M42559</link>
      <description>&lt;P&gt;Goodness of fit is always a matter of how you want to define it. See the "Assessing fit in Generalized Estimating Equations (GEE) models" section of &lt;A href="https://support.sas.com/kb/22/630.html" target="_self"&gt;this note&lt;/A&gt; which mentions an R-square measure, the QIC measure, and observation- and cluster-level ways of assessing fit. Additionally, in your case, the two models differ only by the addition of one predictor. So, the question might amount to whether that added predictor is important. In that case, the significance of that predictor is a comparison of fit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the likelihood ratio test - this is not possible since the GEE method is not likelihood-based.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a separate note, you should never include variables in the CLASS statement that aren't also used in the MODEL, REPEATED, or other statements involved in fitting the model. Doing so can cause observations to be omitted that don't have to be.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 03:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Model-Fit-for-Proc-Gee/m-p/860990#M42559</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-02-27T03:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Model Fit for Proc Gee</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Model-Fit-for-Proc-Gee/m-p/860998#M42560</link>
      <description>&lt;P&gt;Thanks for your response. I have updated the sas code. Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 05:45:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Model-Fit-for-Proc-Gee/m-p/860998#M42560</guid>
      <dc:creator>twix17</dc:creator>
      <dc:date>2023-02-27T05:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Model Fit for Proc Gee</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Model-Fit-for-Proc-Gee/m-p/861057#M42562</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
/*
You could compare two model's RUC statistic to see
if they are different statistically.
But you could run into over-fit problem if you have many X variables.
*/
data data;
 set sashelp.heart;
 if not missing(Smoking_Status);
run;
proc gee data=data;
 class Smoking_Status;
 model Status(event="Dead")= weight height/ dist=bin link=logit type3  ;
 repeated subject=Smoking_Status ;
 output out=want1(keep=status p1) predicted=p1;
run;
proc gee data=data;
 class Smoking_Status;
 model Status(event="Dead")= weight height Diastolic Systolic MRW/  dist=bin link=logit type3 wald;
 repeated subject=Smoking_Status ;
 output out=want2(keep=status p2) predicted=p2;
run;


data want;
 merge want1 want2;
run;
proc logistic data=want ;
model Status(event="Dead")=p1 p2/nofit;
roc 'p1' pred=p1;
roc 'p2' pred=p2;
roccontrast reference('p2') / estimate e;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1677498345805.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80881i8ECE0AE11A76A5C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1677498345805.png" alt="Ksharp_0-1677498345805.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 11:46:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Model-Fit-for-Proc-Gee/m-p/861057#M42562</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-02-27T11:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Model Fit for Proc Gee</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Model-Fit-for-Proc-Gee/m-p/861190#M42569</link>
      <description>Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;</description>
      <pubDate>Mon, 27 Feb 2023 19:11:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Model-Fit-for-Proc-Gee/m-p/861190#M42569</guid>
      <dc:creator>twix17</dc:creator>
      <dc:date>2023-02-27T19:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Model Fit for Proc Gee</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Model-Fit-for-Proc-Gee/m-p/924042#M45912</link>
      <description>&lt;A href="https://blogs.sas.com/content/iml/2024/03/27/likelihood-ratio-test.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2024/03/27/likelihood-ratio-test.html&lt;/A&gt;</description>
      <pubDate>Fri, 12 Apr 2024 02:03:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Model-Fit-for-Proc-Gee/m-p/924042#M45912</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-04-12T02:03:27Z</dc:date>
    </item>
  </channel>
</rss>

