<?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: Hosmer-Lemeshow Goodness-of-Fit Test for ordinal logistic regression in sas enterprise in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hosmer-Lemeshow-Goodness-of-Fit-Test-for-ordinal-logistic/m-p/547225#M33326</link>
    <description>&lt;P&gt;Thank you for your replies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;I have checked the versions, both are using 9.4. Changing the options of the&amp;nbsp;validvarname didn't make any difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp; If the H-L is being run for my last model (&lt;SPAN&gt;gender=1 v.s. gender=4)&lt;/SPAN&gt;, then why is it providing observed and expected values for the other levels? Also, would you mind providing the link to the blog on&amp;nbsp;&lt;SPAN&gt;goodness of fit for ordinal logistic&amp;nbsp;regression&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2019 15:11:29 GMT</pubDate>
    <dc:creator>dsal</dc:creator>
    <dc:date>2019-03-29T15:11:29Z</dc:date>
    <item>
      <title>Hosmer-Lemeshow Goodness-of-Fit Test for ordinal logistic regression in sas enterprise</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hosmer-Lemeshow-Goodness-of-Fit-Test-for-ordinal-logistic/m-p/547016#M33320</link>
      <description>&lt;P&gt;I would like to evaluate the goodness-of-fit in an ordinal logistic regression model (proportional odds). My outcome has 4 levels (1-4 with 4 being a more severe outcome). My understanding is that in order to run the&amp;nbsp;Hosmer-Lemeshow Goodness-of-Fit Test in SAS, your outcome has to be binary. When I request this test in SAS 9.4 I get the message "LACKFIT is ignored since there are more than 2 response levels". However, when I run the same model in SAS enterprise v7.15, I get the an output for the test.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what my code looks like (with some additional class variables that I didn't write down:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=cohort;
	class gender(ref='1') specialist_visit(ref='1') gp_visit(ref='1') ...../param=ref;
	model outcome (descending)= gender specialist_visit gp_visit .../lackfit;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the output from sas enterprise ( I just listed the first and last line):&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Group&lt;/TD&gt;&lt;TD&gt;Total&lt;/TD&gt;&lt;TD&gt;Observed&lt;BR /&gt;outcome&lt;BR /&gt;= 4&lt;/TD&gt;&lt;TD&gt;Observed&lt;BR /&gt;outcome&lt;BR /&gt;= 3&lt;/TD&gt;&lt;TD&gt;Observed&lt;BR /&gt;outcome&lt;BR /&gt;= 2&lt;/TD&gt;&lt;TD&gt;Observed&lt;BR /&gt;outcome&lt;BR /&gt;= 1&lt;/TD&gt;&lt;TD&gt;Expected&lt;BR /&gt;outcome&lt;BR /&gt;= 4&lt;/TD&gt;&lt;TD&gt;Expected&lt;BR /&gt;outcome&lt;BR /&gt;= 3&lt;/TD&gt;&lt;TD&gt;Expected&lt;BR /&gt;outcome&lt;BR /&gt;= 2&lt;/TD&gt;&lt;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&amp;gt;&amp;nbsp;ChiSq&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;36.3246&lt;/TD&gt;&lt;TD&gt;26&lt;/TD&gt;&lt;TD&gt;0.0859&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is: &lt;STRONG&gt;how is sas enterprise producing this outcome &lt;/STRONG&gt;as&amp;nbsp;I couldn't find any documentation on it. Is there an update to the enterprise version to allow this test to run there but not in sas 9.14?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 20:09:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hosmer-Lemeshow-Goodness-of-Fit-Test-for-ordinal-logistic/m-p/547016#M33320</guid>
      <dc:creator>dsal</dc:creator>
      <dc:date>2019-03-28T20:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Hosmer-Lemeshow Goodness-of-Fit Test for ordinal logistic regression in sas enterprise</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hosmer-Lemeshow-Goodness-of-Fit-Test-for-ordinal-logistic/m-p/547019#M33321</link>
      <description>&lt;P&gt;The first things to verify are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- When using SAS Enterprise Guide, are you using the same version/install of SAS (your "SAS 9.4")?&amp;nbsp; Or are you connecting to another SAS environment (remote server).&amp;nbsp; Check SYSVLONG in each environment to see.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%put &amp;amp;=SYSVLONG;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Next, when running in SAS Enterprise Guide some system options might be set differently.&amp;nbsp; I don't know which options could influence this, but comparing the output of PROC OPTIONS from each is a good idea.&amp;nbsp; One notable difference is that SAS Enterprise Guide sets&amp;nbsp;&lt;STRONG&gt;options validvarname=ANY&lt;/STRONG&gt;, where base SAS 9.4 has it as&amp;nbsp;&lt;STRONG&gt;V7&lt;/STRONG&gt; by default.&amp;nbsp; Not sure how that could be a factor here, but you can test by submitting&amp;nbsp;&lt;STRONG&gt;options validvarname=V7;&lt;/STRONG&gt; ahead of your code in EG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 20:18:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hosmer-Lemeshow-Goodness-of-Fit-Test-for-ordinal-logistic/m-p/547019#M33321</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-03-28T20:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Hosmer-Lemeshow Goodness-of-Fit Test for ordinal logistic regression in sas enterprise</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hosmer-Lemeshow-Goodness-of-Fit-Test-for-ordinal-logistic/m-p/547157#M33325</link>
      <description>&lt;P&gt;Maybe H-L test is for your last model&amp;nbsp; gender=1 v.s. gender=4 .&lt;/P&gt;
&lt;P&gt;And&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; wrote a blog about goodness of fit for ordinal logististic regression .&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 11:56:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hosmer-Lemeshow-Goodness-of-Fit-Test-for-ordinal-logistic/m-p/547157#M33325</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-03-29T11:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hosmer-Lemeshow Goodness-of-Fit Test for ordinal logistic regression in sas enterprise</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hosmer-Lemeshow-Goodness-of-Fit-Test-for-ordinal-logistic/m-p/547225#M33326</link>
      <description>&lt;P&gt;Thank you for your replies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;I have checked the versions, both are using 9.4. Changing the options of the&amp;nbsp;validvarname didn't make any difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp; If the H-L is being run for my last model (&lt;SPAN&gt;gender=1 v.s. gender=4)&lt;/SPAN&gt;, then why is it providing observed and expected values for the other levels? Also, would you mind providing the link to the blog on&amp;nbsp;&lt;SPAN&gt;goodness of fit for ordinal logistic&amp;nbsp;regression&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 15:11:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hosmer-Lemeshow-Goodness-of-Fit-Test-for-ordinal-logistic/m-p/547225#M33326</guid>
      <dc:creator>dsal</dc:creator>
      <dc:date>2019-03-29T15:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hosmer-Lemeshow Goodness-of-Fit Test for ordinal logistic regression in sas enterprise</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hosmer-Lemeshow-Goodness-of-Fit-Test-for-ordinal-logistic/m-p/547421#M33328</link>
      <description>&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2019/02/20/easier-calibration-plot-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2019/02/20/easier-calibration-plot-sas.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2019 13:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hosmer-Lemeshow-Goodness-of-Fit-Test-for-ordinal-logistic/m-p/547421#M33328</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-03-30T13:49:33Z</dc:date>
    </item>
  </channel>
</rss>

