<?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: Logistic regression: using Deviance and Person Goodness-of-Fit Statistics to test if the model f in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-using-Deviance-and-Person-Goodness-of-Fit/m-p/859627#M42486</link>
    <description>Thanks for your help!</description>
    <pubDate>Sun, 19 Feb 2023 16:13:47 GMT</pubDate>
    <dc:creator>ting1</dc:creator>
    <dc:date>2023-02-19T16:13:47Z</dc:date>
    <item>
      <title>Logistic regression: using Deviance and Person Goodness-of-Fit Statistics to test if the model fits</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-using-Deviance-and-Person-Goodness-of-Fit/m-p/858992#M42458</link>
      <description>&lt;P&gt;I used a multinomial logistic regression to predict whether people have confidence on a certain issue.&lt;/P&gt;&lt;P&gt;The dependent variable has four categories&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;(1)not confident&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;(2)neutral&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;(3)confident&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;(4) unknown&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Independent variables include Identities, age, gender, education attainment, employment status, born in a certain place or not, community (urban or rural) and interaction terms.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following are the outcomes of the model:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Model Fit Statistics&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Criterion&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Intercept Only&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Intercept and&lt;BR /&gt;Covariates&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;AIC&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;11678.775&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;11421.602&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;SC&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;11698.052&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;12019.195&lt;/P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RONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;4083.7242&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;4359&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0.9368&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0.9987&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Pearson&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;4494.1027&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;4359&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1.0310&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0.0750&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Deviance and Pearson Goodness-of-Fit Statistics show that P-value for Deviance is high. However, the P-value for Pearson statistics is low, even it greater than 0.05. Can I draw a conclusion that the model fits the data well?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 16:48:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-using-Deviance-and-Person-Goodness-of-Fit/m-p/858992#M42458</guid>
      <dc:creator>ting1</dc:creator>
      <dc:date>2023-02-15T16:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression: using Deviance and Person Goodness-of-Fit Statistics to test if the model f</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-using-Deviance-and-Person-Goodness-of-Fit/m-p/859010#M42459</link>
      <description>&lt;P&gt;You didn't provide your PROC LOGISTIC statements or indicate if your multinomial response is ordinal or nominal. So, I have to assume that you treated it as nominal and therefore used the LINK=GLOGIT option. I also assume that you used the AGGREGATE option along with the SCALE=NONE option to get these tests, and since their DF are so large, that some of your predictors are continuous. As noted in the Details:Goodness of fit section of the LOGISTIC documentation, the Pearson and deviance statistics require sufficient replication within the populations in order to be valid and that substantial difference between the two are an indication that neither can be used. With one or more continuous predictors there usually is very little, if any, replication within the populations (the populations are defined by the unique settings of the predictors). See note 22630 (&lt;A href="https://support.sas.com/kb/22/630.html" target="_blank" rel="noopener"&gt;https://support.sas.com/kb/22/630.html&lt;/A&gt;) which goes more into assessing goodness of fit. As suggested there, you could use the Hosmer-Lemeshow test to assess fit.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 17:45:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-using-Deviance-and-Person-Goodness-of-Fit/m-p/859010#M42459</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-02-15T17:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression: using Deviance and Person Goodness-of-Fit Statistics to test if the model f</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-using-Deviance-and-Person-Goodness-of-Fit/m-p/859014#M42460</link>
      <description>Thanks for your answer!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Yes, I used the LINK=GLOGIT option and AGGREGATE along with the SCALE=NONE option to get these tests. I tried the Hosmer and Lemeshow Goodness-of-fit test with the option lackfit, and the test result did not show up in the output.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Feb 2023 18:05:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-using-Deviance-and-Person-Goodness-of-Fit/m-p/859014#M42460</guid>
      <dc:creator>ting1</dc:creator>
      <dc:date>2023-02-15T18:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression: using Deviance and Person Goodness-of-Fit Statistics to test if the model f</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-using-Deviance-and-Person-Goodness-of-Fit/m-p/859034#M42461</link>
      <description>As mentioned in the note I referred to, the Hosmer-Lemeshow test is available for the multinomial model beginning with SAS 9.4M3. The current release is SAS 9.4M8.</description>
      <pubDate>Wed, 15 Feb 2023 19:17:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-using-Deviance-and-Person-Goodness-of-Fit/m-p/859034#M42461</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-02-15T19:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression: using Deviance and Person Goodness-of-Fit Statistics to test if the model f</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-using-Deviance-and-Person-Goodness-of-Fit/m-p/859040#M42462</link>
      <description>This is my SAS version:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Copyright (c) 2002-2012 by SAS Institute Inc., Cary, NC, USA.&lt;BR /&gt;NOTE: SAS (r) Proprietary Software 9.4 (TS1M2)&lt;BR /&gt;Licensed to JUSTICE CANADA, Site 70169614.&lt;BR /&gt;NOTE: This session is executing on the X64_8PRO platform.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I guess this version cannot show the "lackfit" test.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Feb 2023 19:43:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-using-Deviance-and-Person-Goodness-of-Fit/m-p/859040#M42462</guid>
      <dc:creator>ting1</dc:creator>
      <dc:date>2023-02-15T19:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression: using Deviance and Person Goodness-of-Fit Statistics to test if the model f</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-using-Deviance-and-Person-Goodness-of-Fit/m-p/859053#M42463</link>
      <description>Check with the people that administer your SAS license and see if they have a more recent release available to you.</description>
      <pubDate>Wed, 15 Feb 2023 20:42:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-using-Deviance-and-Person-Goodness-of-Fit/m-p/859053#M42463</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-02-15T20:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression: using Deviance and Person Goodness-of-Fit Statistics to test if the model f</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-using-Deviance-and-Person-Goodness-of-Fit/m-p/859627#M42486</link>
      <description>Thanks for your help!</description>
      <pubDate>Sun, 19 Feb 2023 16:13:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-using-Deviance-and-Person-Goodness-of-Fit/m-p/859627#M42486</guid>
      <dc:creator>ting1</dc:creator>
      <dc:date>2023-02-19T16:13:47Z</dc:date>
    </item>
  </channel>
</rss>

