<?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: Estimating an odds ratio for a variable involved in an interaction in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Estimating-an-odds-ratio-for-a-variable-involved-in-an/m-p/893588#M353028</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/332712"&gt;@zihdonv19&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry to see that your question hasn't been answered yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you reinterpret the sample data from&amp;nbsp;Usage Note 24455 so that COUNT is now a continuous predictor and DIAGNOSIS is the dichotomous response variable. Let's assume that&amp;nbsp;DIAGNOSIS='complicated' is the event of interest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, in principle, you can obtain the desired odds ratio estimates (together with 95% confidence intervals) with this syntax:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=uti;
class treatment / param=glm;
model diagnosis(event='complicated') = treatment count treatment*count;
oddsratio count;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, this particular dataset with only four observations per treatment group is too small to yield a reasonable result: see the warnings about quasi-complete separation etc. in the log and in the output.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2023 15:58:46 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2023-09-11T15:58:46Z</dc:date>
    <item>
      <title>Estimating an odds ratio for a variable involved in an interaction</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Estimating-an-odds-ratio-for-a-variable-involved-in-an/m-p/892593#M352541</link>
      <description>&lt;P&gt;I'm using this example dataset to show my question, which is from:&amp;nbsp;&lt;A href="http://support.sas.com/kb/24/455.html" target="_blank"&gt;http://support.sas.com/kb/24/455.html&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  data uti;
         input diagnosis : $13. treatment $ response $ count @@;
         datalines;
      complicated    A  cured 78  complicated   A not 28
      complicated    B  cured 101 complicated   B not 11
      complicated    C  cured 68  complicated   C not 46
      uncomplicated  A  cured 40  uncomplicated A not 5
      uncomplicated  B  cured 54  uncomplicated B not 5
      uncomplicated  C  cured 34  uncomplicated C not 6
      ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I want to examine the relationship between count and diagnosis (odds ratio) using interaction term in logistic regression at each level of treatment. What I want:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;Treatment&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;ORs (diagnosis~count)&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;Confidence interval&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;A&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1.4&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;(1.2, 1.6)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;B&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1.2&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;(1.1, 1.6)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;C&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1.5&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;(0.8, 1.8)&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;For a&amp;nbsp;&lt;SPAN&gt;fabricate&lt;/SPAN&gt; example, the odds ratio is 1.4 at treatment A meaning that for every one count increase, the risk of being diagnosed increased by 40%.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 16:23:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Estimating-an-odds-ratio-for-a-variable-involved-in-an/m-p/892593#M352541</guid>
      <dc:creator>zihdonv19</dc:creator>
      <dc:date>2023-09-04T16:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating an odds ratio for a variable involved in an interaction</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Estimating-an-odds-ratio-for-a-variable-involved-in-an/m-p/893588#M353028</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/332712"&gt;@zihdonv19&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry to see that your question hasn't been answered yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you reinterpret the sample data from&amp;nbsp;Usage Note 24455 so that COUNT is now a continuous predictor and DIAGNOSIS is the dichotomous response variable. Let's assume that&amp;nbsp;DIAGNOSIS='complicated' is the event of interest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, in principle, you can obtain the desired odds ratio estimates (together with 95% confidence intervals) with this syntax:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=uti;
class treatment / param=glm;
model diagnosis(event='complicated') = treatment count treatment*count;
oddsratio count;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, this particular dataset with only four observations per treatment group is too small to yield a reasonable result: see the warnings about quasi-complete separation etc. in the log and in the output.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 15:58:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Estimating-an-odds-ratio-for-a-variable-involved-in-an/m-p/893588#M353028</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-09-11T15:58:46Z</dc:date>
    </item>
  </channel>
</rss>

