<?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 proc logistic: comparison in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-comparison/m-p/29161#M1147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using proc logistic to calculate odds ratio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable: ev =1 (success)&amp;nbsp; or 0&lt;/P&gt;&lt;P&gt;treatment: A, B, C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;I would like to calculate odds ratio to compare the odds for treatment A and B, treatment A and C, treatment B and C.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I tried running three logistic as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc logistic data=sample;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where treatment in ('A' 'B');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class treatment;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model ev (EVENT='1')= treatmnet;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on for the other odds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I tried with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc logistic data=sample&lt;/P&gt;&lt;P&gt;class treatment;&lt;/P&gt;&lt;P&gt;model ev (EVENT='1')= treatmnet;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I obtain is the odds ratio for only two comparison. I notice that the odds ratio and the confidence interval are the same in the two cases, but the&amp;nbsp; p-value is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do to calculate all the odds ratio I need in the correct way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank in advance for any answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2012 10:42:12 GMT</pubDate>
    <dc:creator>L_L</dc:creator>
    <dc:date>2012-03-13T10:42:12Z</dc:date>
    <item>
      <title>proc logistic: comparison</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-comparison/m-p/29161#M1147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using proc logistic to calculate odds ratio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable: ev =1 (success)&amp;nbsp; or 0&lt;/P&gt;&lt;P&gt;treatment: A, B, C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;I would like to calculate odds ratio to compare the odds for treatment A and B, treatment A and C, treatment B and C.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I tried running three logistic as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc logistic data=sample;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where treatment in ('A' 'B');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class treatment;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model ev (EVENT='1')= treatmnet;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on for the other odds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I tried with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc logistic data=sample&lt;/P&gt;&lt;P&gt;class treatment;&lt;/P&gt;&lt;P&gt;model ev (EVENT='1')= treatmnet;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I obtain is the odds ratio for only two comparison. I notice that the odds ratio and the confidence interval are the same in the two cases, but the&amp;nbsp; p-value is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do to calculate all the odds ratio I need in the correct way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank in advance for any answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 10:42:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-comparison/m-p/29161#M1147</guid>
      <dc:creator>L_L</dc:creator>
      <dc:date>2012-03-13T10:42:12Z</dc:date>
    </item>
    <item>
      <title>proc logistic: comparison</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-comparison/m-p/29162#M1148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the oddsratio statement with the param=ref option.&lt;/P&gt;&lt;P&gt;You may have also spelled 'treatment' incorrectly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc logistic data=sample&lt;/P&gt;&lt;P&gt;class treatment/param=ref;&lt;/P&gt;&lt;P&gt;model ev (EVENT='1')= treatment;&lt;/P&gt;&lt;P&gt;oddsratio treatment;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 13:43:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-comparison/m-p/29162#M1148</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-03-13T13:43:02Z</dc:date>
    </item>
    <item>
      <title>proc logistic: comparison</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-comparison/m-p/29163#M1149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you very much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 14:59:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-comparison/m-p/29163#M1149</guid>
      <dc:creator>L_L</dc:creator>
      <dc:date>2012-03-13T14:59:59Z</dc:date>
    </item>
  </channel>
</rss>

