<?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: Different Somers'D values from Freq and Logistic in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Different-Somers-D-values-from-Freq-and-Logistic/m-p/70944#M20458</link>
    <description>Based on the documentation, it looks like FREQ applies a correction for ties and LOGISTIC does not.  Your example has at least one tie.  Try new sample data without ties.&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier&lt;BR /&gt;
Duke</description>
    <pubDate>Sun, 25 Jan 2009 15:25:01 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2009-01-25T15:25:01Z</dc:date>
    <item>
      <title>Different Somers'D values from Freq and Logistic</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Different-Somers-D-values-from-Freq-and-Logistic/m-p/70943#M20457</link>
      <description>I was running SAS on a set of 10 observations each given a rating between 1-3, and another variable A, B or C is assigned to each of them.&lt;BR /&gt;
&lt;BR /&gt;
e.g.&lt;BR /&gt;
Obs  F1  F2&lt;BR /&gt;
Ob1  A   1&lt;BR /&gt;
Ob2  A   3&lt;BR /&gt;
Ob3  B   3&lt;BR /&gt;
Ob4  C   2&lt;BR /&gt;
Ob5  C   3&lt;BR /&gt;
Ob6  B   1&lt;BR /&gt;
Ob7  A   3&lt;BR /&gt;
Ob8  B   3  &lt;BR /&gt;
&lt;BR /&gt;
I used the following to obtain Somers'D&lt;BR /&gt;
"Proc freq data=xxx;&lt;BR /&gt;
tables F1*F2 / measures;&lt;BR /&gt;
run;"&lt;BR /&gt;
&lt;BR /&gt;
But it comes out differently from the Somers'D in the output of the logistic function&lt;BR /&gt;
Proc logistic data=xxx;&lt;BR /&gt;
class F1;&lt;BR /&gt;
model F1=F2 / rsquare  stb;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Then I tried "model F2=F1", the Somers'D still doesn't agree with Freq.&lt;BR /&gt;
&lt;BR /&gt;
Could anyone help me to understand this please?</description>
      <pubDate>Sat, 24 Jan 2009 01:41:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Different-Somers-D-values-from-Freq-and-Logistic/m-p/70943#M20457</guid>
      <dc:creator>ftsr</dc:creator>
      <dc:date>2009-01-24T01:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Different Somers'D values from Freq and Logistic</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Different-Somers-D-values-from-Freq-and-Logistic/m-p/70944#M20458</link>
      <description>Based on the documentation, it looks like FREQ applies a correction for ties and LOGISTIC does not.  Your example has at least one tie.  Try new sample data without ties.&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier&lt;BR /&gt;
Duke</description>
      <pubDate>Sun, 25 Jan 2009 15:25:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Different-Somers-D-values-from-Freq-and-Logistic/m-p/70944#M20458</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2009-01-25T15:25:01Z</dc:date>
    </item>
  </channel>
</rss>

