<?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: goodness of fit proc logistic in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/goodness-of-fit-proc-logistic/m-p/718618#M34757</link>
    <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Attached is a sample of my data. Q6 is my dependent var. and Q7 my independent.&lt;/P&gt;&lt;P&gt;Thank you for taking the time to look into my data.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MS&lt;/P&gt;</description>
    <pubDate>Thu, 11 Feb 2021 14:50:22 GMT</pubDate>
    <dc:creator>mszommer</dc:creator>
    <dc:date>2021-02-11T14:50:22Z</dc:date>
    <item>
      <title>goodness of fit proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/goodness-of-fit-proc-logistic/m-p/718548#M34745</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need help with choosing a goodness of fit test for binary logistic regression.&lt;/P&gt;&lt;P&gt;I have one independent variable, which is also categorical (binary) in nature. I got a not-so-fascinating c score of .54 and also a slightly moving-upward ROC curve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the below code and obtained the below result:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas_image.png" style="width: 397px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54572iB8AA90614AE46E0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas_image.png" alt="sas_image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;proc logistic data=done.input_survey_v3 plots(maxpoints=none)=effect;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model Q6(event='1')=Q7 / aggregate scale=none;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What does aggregate= option do? When must it be used?&lt;/P&gt;&lt;P&gt;Is Hosmer and Lemeshow GOF test meant for binary response data? I even tried that and got the same result - blanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thank in advance for any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MS&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 14:43:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/goodness-of-fit-proc-logistic/m-p/718548#M34745</guid>
      <dc:creator>mszommer</dc:creator>
      <dc:date>2021-02-11T14:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: goodness of fit proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/goodness-of-fit-proc-logistic/m-p/718589#M34752</link>
      <description>&lt;P&gt;A lot is going to depend on the data you are fitting.&amp;nbsp; Can you share that dataset?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 14:10:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/goodness-of-fit-proc-logistic/m-p/718589#M34752</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-02-11T14:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: goodness of fit proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/goodness-of-fit-proc-logistic/m-p/718618#M34757</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Attached is a sample of my data. Q6 is my dependent var. and Q7 my independent.&lt;/P&gt;&lt;P&gt;Thank you for taking the time to look into my data.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MS&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 14:50:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/goodness-of-fit-proc-logistic/m-p/718618#M34757</guid>
      <dc:creator>mszommer</dc:creator>
      <dc:date>2021-02-11T14:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: goodness of fit proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/goodness-of-fit-proc-logistic/m-p/718637#M34759</link>
      <description>&lt;P&gt;Since both variables are binary, you really have just a 2x2 table that defines two proportions. There is no need to fit a model for such data. You can simply compare those two proportions using the CHISQ option in PROC FREQ.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Concerning PROC LOGISTIC, the goodness of fit statistics have zero degrees of freedom because, with just a single binary predictor, the model is saturated and there are no degrees of freedom remaining. The AGGREGATE option is used in more complex models&amp;nbsp;&lt;SPAN&gt;if the data is collected in subpopulations defined more precisely than by the covariates in the model as further described in&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://support.sas.com/kb/23086.html" target="_blank"&gt;this note&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 15:46:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/goodness-of-fit-proc-logistic/m-p/718637#M34759</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-02-11T15:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: goodness of fit proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/goodness-of-fit-proc-logistic/m-p/718824#M34786</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for the explanation. It just slipped my mind that I could run a simple measures of association.&lt;/P&gt;&lt;P&gt;Having said that, I have seen several courses show fitting a model to such data (2 binary variables). Wouldn't the r2 always be too small in such cases? Obviously, the r2 value can't be improved as there are no independent variables to add.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do look forward to your opinion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mari&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 07:13:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/goodness-of-fit-proc-logistic/m-p/718824#M34786</guid>
      <dc:creator>mszommer</dc:creator>
      <dc:date>2021-02-12T07:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: goodness of fit proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/goodness-of-fit-proc-logistic/m-p/718903#M34788</link>
      <description>&lt;P&gt;Unfortunately, R-square is not uniquely defined in generalized linear models like logistic models. There are many R-square statistics that have been devised but don't really have the clear "variance explained" interpretation of R-square in ordinary least-squares regression as from PROC REG and PROC GLM. Several R-square statistics are available with the GOF option in PROC LOGISTIC. Between this and since, with only one or two binary predictors there are only two or four populations, R-square is probably not a very useful statistic for assessing goodness of fit. If there is sufficient replication within the populations, then the Pearson and Deviance statistics are reasonable fit tests. In the case of two binary predictors, the model is not saturated if you don't include their interaction, so these tests and the additional tests provided by the GOF option can be useful.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 14:48:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/goodness-of-fit-proc-logistic/m-p/718903#M34788</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-02-12T14:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: goodness of fit proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/goodness-of-fit-proc-logistic/m-p/719549#M34810</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;,. Really appreciate it.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 08:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/goodness-of-fit-proc-logistic/m-p/719549#M34810</guid>
      <dc:creator>mszommer</dc:creator>
      <dc:date>2021-02-16T08:39:11Z</dc:date>
    </item>
  </channel>
</rss>

