<?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: PROC QLIM and PROC Logistic results not matching in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-QLIM-and-PROC-Logistic-results-not-matching/m-p/724579#M35131</link>
    <description>&lt;P&gt;It might not hurt to provide the Proc Logistic Code as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might test your hypothesis by changing the reference value in proc logistic.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Mar 2021 17:54:44 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-03-08T17:54:44Z</dc:date>
    <item>
      <title>PROC QLIM and PROC Logistic results not matching</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-QLIM-and-PROC-Logistic-results-not-matching/m-p/724567#M35129</link>
      <description>&lt;P&gt;Morning,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We do not have much experience with PROC QLIM but needed to use it to get a Mills ratio.&amp;nbsp; Our dependent variable has 2 values (0,1) and here is our code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc qlim data= &amp;amp;indata. ;&lt;BR /&gt;model MA_ENROLL = &amp;lt;list of variables&amp;gt;&amp;nbsp;/ discrete(d=normal);&lt;BR /&gt;output out=in.prob_enroll_&amp;amp;indata. marginal mills prob xbeta;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The results of this model are:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tbell_0-1615223960372.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55669iA36F28047EA1580F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tbell_0-1615223960372.png" alt="tbell_0-1615223960372.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We did the same using PROC Logistic -- for which we are very familiar.&amp;nbsp; We got the same results for the dependent variable = 1.&amp;nbsp; But got 1-p results for dependent variable = 0.&amp;nbsp; And these results are more expected given the data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it appears the the above table from QLIM (peach color cell) is the probability of the dependent variable being 0 for observations when the dependent variable is 0.&amp;nbsp; And not the probability of the dependent variable being 1 for observations when the dependent variable is 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 17:24:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-QLIM-and-PROC-Logistic-results-not-matching/m-p/724567#M35129</guid>
      <dc:creator>tbell</dc:creator>
      <dc:date>2021-03-08T17:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: PROC QLIM and PROC Logistic results not matching</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-QLIM-and-PROC-Logistic-results-not-matching/m-p/724571#M35130</link>
      <description>&lt;P&gt;I forgot to include the logistic results for comparison.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tbell_0-1615224698049.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55671i570D125F217ED401/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tbell_0-1615224698049.png" alt="tbell_0-1615224698049.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 17:31:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-QLIM-and-PROC-Logistic-results-not-matching/m-p/724571#M35130</guid>
      <dc:creator>tbell</dc:creator>
      <dc:date>2021-03-08T17:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC QLIM and PROC Logistic results not matching</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-QLIM-and-PROC-Logistic-results-not-matching/m-p/724579#M35131</link>
      <description>&lt;P&gt;It might not hurt to provide the Proc Logistic Code as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might test your hypothesis by changing the reference value in proc logistic.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 17:54:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-QLIM-and-PROC-Logistic-results-not-matching/m-p/724579#M35131</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-08T17:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC QLIM and PROC Logistic results not matching</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-QLIM-and-PROC-Logistic-results-not-matching/m-p/724580#M35132</link>
      <description>Thanks. Here is the form of the logistic code:&lt;BR /&gt;&lt;BR /&gt;proc logistic DESCENDING data = newdata;&lt;BR /&gt;model y = x1 /link=probit;&lt;BR /&gt;output out=predict2 pred=phat;&lt;BR /&gt;run;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Mar 2021 18:01:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-QLIM-and-PROC-Logistic-results-not-matching/m-p/724580#M35132</guid>
      <dc:creator>tbell</dc:creator>
      <dc:date>2021-03-08T18:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC QLIM and PROC Logistic results not matching</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-QLIM-and-PROC-Logistic-results-not-matching/m-p/724586#M35133</link>
      <description>&lt;P&gt;PROC LOGISTIC models the probability of the first sorted response level by default, which means 0 for a 0/1 response variable. I believe QLIM expects a 0/1 response variable and always models the probability of 1. If you can to model the probability of 1 in PROC LOGISTIC, specify the EVENT="1" response option:&amp;nbsp; model y(event="1") = ...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 18:27:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-QLIM-and-PROC-Logistic-results-not-matching/m-p/724586#M35133</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-03-08T18:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC QLIM and PROC Logistic results not matching</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-QLIM-and-PROC-Logistic-results-not-matching/m-p/724593#M35134</link>
      <description>Thanks. We used the DESCENDING option in Logistic so I think we are getting probability of 1. And that is what we want. But how do we get the same in QLIM?</description>
      <pubDate>Mon, 08 Mar 2021 18:46:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-QLIM-and-PROC-Logistic-results-not-matching/m-p/724593#M35134</guid>
      <dc:creator>tbell</dc:creator>
      <dc:date>2021-03-08T18:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC QLIM and PROC Logistic results not matching</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-QLIM-and-PROC-Logistic-results-not-matching/m-p/724600#M35135</link>
      <description>&lt;P&gt;Try the PROBALL option in the OUTPUT statement instead of the PROB option. One of the two resulting columns should match the predicted probabilities output by PROC LOGISTIC.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 19:10:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-QLIM-and-PROC-Logistic-results-not-matching/m-p/724600#M35135</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-03-08T19:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: PROC QLIM and PROC Logistic results not matching</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-QLIM-and-PROC-Logistic-results-not-matching/m-p/724606#M35137</link>
      <description>Thanks Dave,&lt;BR /&gt;&lt;BR /&gt;Will try that -- currently the system with the data is down at the moment, but will try that asap. And will "accept as solution" if this works. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Mon, 08 Mar 2021 19:19:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-QLIM-and-PROC-Logistic-results-not-matching/m-p/724606#M35137</guid>
      <dc:creator>tbell</dc:creator>
      <dc:date>2021-03-08T19:19:27Z</dc:date>
    </item>
  </channel>
</rss>

