<?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: Osius-Rojek test for goodness of fit for PROC LOGISTIC in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Osius-Rojek-test-for-goodness-of-fit-for-PROC-LOGISTIC/m-p/733885#M35612</link>
    <description>In my REPLY, please read XP2 as XP**2. Read (O-R z-statistic)2 as (O-R z-statistic)**2 and (HLS z-statistic)2 as (HLS z-statistic)**2, etc.</description>
    <pubDate>Wed, 14 Apr 2021 18:12:30 GMT</pubDate>
    <dc:creator>blund</dc:creator>
    <dc:date>2021-04-14T18:12:30Z</dc:date>
    <item>
      <title>Osius-Rojek test for goodness of fit for PROC LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Osius-Rojek-test-for-goodness-of-fit-for-PROC-LOGISTIC/m-p/708854#M34317</link>
      <description>&lt;P&gt;In SAS 9.4 / Viya 3.4 documentation for PROC LOGISTIC the formula for the variance of the Pearson chi-square statistic is discussed in the section entitled “Osius-Rojek Test”. See page 5858 &lt;EM&gt;of &lt;/EM&gt;&lt;EM&gt;SAS/STAT® 15.1 User’s Guide The LOGISTIC Procedure &lt;/EM&gt;(2018). PROC LOGISTIC computes Osius-Rojek for the training data set when "/ GOF" is added to the MODEL statement. Is this same O-R formula applicable to a validation data set?&lt;/P&gt;&lt;P&gt;NOTE: Osius-Rojek is not computed as part of the FITSTAT for a data set that is scored via SCORE DATA = VALIDATION OUT = SCORED FITSTAT;&lt;/P&gt;&lt;P&gt;Added Note:&amp;nbsp;&lt;/P&gt;&lt;P&gt;The O-R formula for variance on page 5858 is not the same as the formula in Hosmer, Lemeshow, Sturdivant &lt;EM&gt;Applied Logistic Regression, Third Edition&lt;/EM&gt; on page 203. In the SAS document on page 5858 there is a term &lt;STRONG&gt;c'Vc&lt;/STRONG&gt; which is subtracted.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 03:19:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Osius-Rojek-test-for-goodness-of-fit-for-PROC-LOGISTIC/m-p/708854#M34317</guid>
      <dc:creator>blund</dc:creator>
      <dc:date>2020-12-31T03:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Osius-Rojek test for goodness of fit for PROC LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Osius-Rojek-test-for-goodness-of-fit-for-PROC-LOGISTIC/m-p/733884#M35611</link>
      <description>&lt;P&gt;HLS (&lt;SPAN&gt;Hosmer, Lemeshow, Sturdivant&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Applied Logistic Regression)&amp;nbsp;&lt;/EM&gt;on pages 164-165 present an alternative z-statistic to the O-R z-statistic (Osius-Rojek) for goodness of fit measurement. Both z‑statistics are intended to be computed on the Training Dataset.&lt;/P&gt;&lt;P&gt;Let J be the number of profiles (distinct combinations of values of the x’s). Let XP2 be the Pearson chi‑square statistic.&lt;/P&gt;&lt;P&gt;The HLS z-statistic only differs in the numerator from the O-R z-statistic. Instead of the O-R numerator of XP2 - J, the HLS version subtracts the degrees of freedom (parameters K plus 1) from J. So, the HLS numerator becomes XP2 - (J - K - 1).&lt;/P&gt;&lt;P&gt;The formula for the denominator, as given in HLS pages 164-165, looks very different than the formula for O-R as given in SAS PROC LOGISTIC documentation given in SAS/STAT 15.1 documentation page 5858. However, this two formulas produce the same answer. (&lt;A href="https://documentation.sas.com/api/collections/pgmsascdc/9.4_3.4/docsets/statug/content/statug.pdf?locale=en#nameddest=titlepage" target="_blank" rel="noopener"&gt;https://documentation.sas.com/api/collections/pgmsascdc/9.4_3.4/docsets/statug/content/statug.pdf?locale=en#nameddest=titlepage&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;If a user wants to utilize the (HLS z-statistic)2 for measuring goodness of fit on the training group, it is easy to obtain this value from the (O-R z-statistic)2 as reported by PROC LOGISTIC. Here is the process:&lt;/P&gt;&lt;P&gt;Record the Pearson chi-square XP2 and (O-R z-statistic)2&lt;/P&gt;&lt;P&gt;Compute two numbers:&lt;/P&gt;&lt;P&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; Num1 = (XP2 - J + K + 1) and Num2 = (XP2 - J)&lt;/P&gt;&lt;P&gt;Then (HLS z-statistic)2 is given by&lt;/P&gt;&lt;P&gt;(HLS z-statistic)2 = (O-R z-statistic)2 * (Num1/Num2)2&lt;/P&gt;&lt;P&gt;The (HLS z-statistic)2 may be less than or greater than (O-R z-statistic)2. Examples can be constructed for (XP2- J + K + 1)2 &amp;gt; (XP2 - J)2 and for (XP2 - J + K + 1)2 &amp;lt; (XP2 - J)2&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 18:07:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Osius-Rojek-test-for-goodness-of-fit-for-PROC-LOGISTIC/m-p/733884#M35611</guid>
      <dc:creator>blund</dc:creator>
      <dc:date>2021-04-14T18:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Osius-Rojek test for goodness of fit for PROC LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Osius-Rojek-test-for-goodness-of-fit-for-PROC-LOGISTIC/m-p/733885#M35612</link>
      <description>In my REPLY, please read XP2 as XP**2. Read (O-R z-statistic)2 as (O-R z-statistic)**2 and (HLS z-statistic)2 as (HLS z-statistic)**2, etc.</description>
      <pubDate>Wed, 14 Apr 2021 18:12:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Osius-Rojek-test-for-goodness-of-fit-for-PROC-LOGISTIC/m-p/733885#M35612</guid>
      <dc:creator>blund</dc:creator>
      <dc:date>2021-04-14T18:12:30Z</dc:date>
    </item>
  </channel>
</rss>

