<?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: Odds ratios for categorical variables using total as reference in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-for-categorical-variables-using-total-as-reference/m-p/390000#M20335</link>
    <description>&lt;P&gt;I have tried creating an overall category in discat but then all observations fall under overall instead of the 22 other categories. Do you have any additional specific advice on how to do that?&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2017 19:37:55 GMT</pubDate>
    <dc:creator>crockerm12</dc:creator>
    <dc:date>2017-08-22T19:37:55Z</dc:date>
    <item>
      <title>Odds ratios for categorical variables using total as reference</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-for-categorical-variables-using-total-as-reference/m-p/389972#M20333</link>
      <description>&lt;P&gt;Hello! I'm trying to produce odds ratios for hospital readmission based upon 22 different categories of disease. I would also like to see the OR for the TOTAL of all disease categories (all 22 added together), and use this as a reference group. I'm not sure how to do this using total as the ref. Any suggestions? Thanks in advance for any assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=index_events descending;&lt;BR /&gt;class discat;&lt;BR /&gt;model readmit=discat;&lt;BR /&gt;weight discwt;&lt;BR /&gt;format discat discat.;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 18:35:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-for-categorical-variables-using-total-as-reference/m-p/389972#M20333</guid>
      <dc:creator>crockerm12</dc:creator>
      <dc:date>2017-08-22T18:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Odds ratios for categorical variables using total as reference</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-for-categorical-variables-using-total-as-reference/m-p/389975#M20334</link>
      <description>If you have weights you should use PROC SURVEYLOGISTIC not LOGISTIC.&lt;BR /&gt;&lt;BR /&gt;To compare to all you can replicate the data and have overall as a category in discat but this may affect other calculations. At that point I suspect you need an ESTIMATE statement .</description>
      <pubDate>Tue, 22 Aug 2017 18:38:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-for-categorical-variables-using-total-as-reference/m-p/389975#M20334</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-22T18:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Odds ratios for categorical variables using total as reference</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-for-categorical-variables-using-total-as-reference/m-p/390000#M20335</link>
      <description>&lt;P&gt;I have tried creating an overall category in discat but then all observations fall under overall instead of the 22 other categories. Do you have any additional specific advice on how to do that?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 19:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-for-categorical-variables-using-total-as-reference/m-p/390000#M20335</guid>
      <dc:creator>crockerm12</dc:creator>
      <dc:date>2017-08-22T19:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Odds ratios for categorical variables using total as reference</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-for-categorical-variables-using-total-as-reference/m-p/390034#M20336</link>
      <description>&lt;P&gt;You have to replicate the data, not just recode it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ie&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data all_comparison;
set sashelp.class;

output;
sex='T'; 
output;
run;&lt;BR /&gt;&lt;BR /&gt;proc freq data=all_comparison;&lt;BR /&gt;table sex;&lt;BR /&gt;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Aug 2017 21:22:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-for-categorical-variables-using-total-as-reference/m-p/390034#M20336</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-22T21:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Odds ratios for categorical variables using total as reference</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-for-categorical-variables-using-total-as-reference/m-p/390287#M20345</link>
      <description>&lt;P&gt;What you want to do can be done using the DIFF=ANOM option in the LSMEANS statement in PROC LOGISTIC. &amp;nbsp;See &lt;A href="http://support.sas.com/kb/22571" target="_self"&gt;this note&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 15:05:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratios-for-categorical-variables-using-total-as-reference/m-p/390287#M20345</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2017-08-23T15:05:56Z</dc:date>
    </item>
  </channel>
</rss>

