<?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: Logistic Regression Modeling Outcomes &amp;quot;1 vs. 0&amp;quot; instead of &amp;quot;0 vs. 1&amp;quot;; DESC n in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Regression-Modeling-Outcomes-quot-1-vs-0-quot-instead/m-p/674105#M32256</link>
    <description>&lt;P&gt;Response removed by author&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Because it was wrong, basically)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Mon, 03 Aug 2020 12:47:52 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2020-08-03T12:47:52Z</dc:date>
    <item>
      <title>Logistic Regression Modeling Outcomes "1 vs. 0" instead of "0 vs. 1"; DESC not functioning</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Regression-Modeling-Outcomes-quot-1-vs-0-quot-instead/m-p/674093#M32252</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running a logistic regression model with mortality as the dependent variable (event of interest is "1", which equals mortality) and 3 treatments as the independent variable ("0" signifies the patient did not receive therapy, whereas "1" signifies the patient did receive therapy).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When running the model, SAS defaults to reporting the event of "0 vs 1" in the odds ratio plots (see below).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="darkwob_4-1596455968131.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47881i6770012F7983A3B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="darkwob_4-1596455968131.png" alt="darkwob_4-1596455968131.png" /&gt;&lt;/span&gt;&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="darkwob_0-1596455733991.png" style="width: 511px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47877iA81FC1D5A7887A4F/image-dimensions/511x466?v=v2" width="511" height="466" role="button" title="darkwob_0-1596455733991.png" alt="darkwob_0-1596455733991.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=WORK.TOCI plots=(oddsratio(cldisplay=serifarrow) );&lt;BR /&gt;class Received_Hydroxychloroquine Received_Azithromycin Treatment / param=glm;&lt;BR /&gt;model Mortality(event='1')=Received_Hydroxychloroquine Received_Azithromycin&lt;BR /&gt;Treatment / link=logit technique=fisher;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to model this analysis based on "1 vs. 0", in other words the predictability of mortality if the patient received therapy. I adjusted the code by adding DESC, and the order seems to have reversed, but the odds ratio plot is still reporting "0 vs. 1" and the point estimates have not changed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="darkwob_3-1596455905843.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47880i1AE94C153024E105/image-size/medium?v=v2&amp;amp;px=400" role="button" title="darkwob_3-1596455905843.png" alt="darkwob_3-1596455905843.png" /&gt;&lt;/span&gt;&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="darkwob_1-1596455861857.png" style="width: 504px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47878i92C37417EC4E8B09/image-dimensions/504x447?v=v2" width="504" height="447" role="button" title="darkwob_1-1596455861857.png" alt="darkwob_1-1596455861857.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic descending data=WORK.TOCI plots=(oddsratio(cldisplay=serifarrow) );&lt;BR /&gt;class Received_Hydroxychloroquine Received_Azithromycin Treatment / param=glm;&lt;BR /&gt;model Mortality(event='1')=Received_Hydroxychloroquine Received_Azithromycin&lt;BR /&gt;Treatment / link=logit technique=fisher;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any additional issue in the code of the program that is causing this to happen, or am I misinterpreting the results?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 12:01:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Regression-Modeling-Outcomes-quot-1-vs-0-quot-instead/m-p/674093#M32252</guid>
      <dc:creator>darkwob</dc:creator>
      <dc:date>2020-08-03T12:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Regression Modeling Outcomes "1 vs. 0" instead of "0 vs. 1"; DESC n</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Regression-Modeling-Outcomes-quot-1-vs-0-quot-instead/m-p/674103#M32255</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/332017"&gt;@darkwob&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output says "&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;Probability modeled is Mortality='1'&lt;/STRONG&gt;&lt;/FONT&gt;" -- which is what you want and what you requested with the option &lt;FONT face="courier new,courier"&gt;event='1'&lt;/FONT&gt; in the MODEL statement. So, the &lt;FONT face="courier new,courier"&gt;descending&lt;/FONT&gt; option in the PROC LOGISTIC statement is basically redundant. Instead, add the &lt;FONT face="courier new,courier"&gt;descending&lt;/FONT&gt; option &lt;EM&gt;of the CLASS statement&lt;/EM&gt; to turn the odds ratios of the dichotomous CLASS variables around.&lt;/P&gt;
&lt;PRE&gt;class Received_Hydroxychloroquine Received_Azithromycin Treatment / param=glm &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;descending&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Aug 2020 12:41:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Regression-Modeling-Outcomes-quot-1-vs-0-quot-instead/m-p/674103#M32255</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-08-03T12:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Regression Modeling Outcomes "1 vs. 0" instead of "0 vs. 1"; DESC n</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Regression-Modeling-Outcomes-quot-1-vs-0-quot-instead/m-p/674105#M32256</link>
      <description>&lt;P&gt;Response removed by author&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Because it was wrong, basically)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 12:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Regression-Modeling-Outcomes-quot-1-vs-0-quot-instead/m-p/674105#M32256</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-08-03T12:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Regression Modeling Outcomes "1 vs. 0" instead of "0 vs. 1"; DESC n</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Regression-Modeling-Outcomes-quot-1-vs-0-quot-instead/m-p/674108#M32258</link>
      <description>Great, this solved the issue, much appreciated!&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Aug 2020 12:46:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Regression-Modeling-Outcomes-quot-1-vs-0-quot-instead/m-p/674108#M32258</guid>
      <dc:creator>darkwob</dc:creator>
      <dc:date>2020-08-03T12:46:21Z</dc:date>
    </item>
  </channel>
</rss>

