<?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: Binary logistic regression output format: false vs. true AS OPPOSED TO true vs. false in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Binary-logistic-regression-output-format-false-vs-true-AS/m-p/475512#M24760</link>
    <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;In this case, I want PainExists_1y to be 'true', but I want my classification variable (cancer) to generate odds ratios of true vs. false (right now it's giving me false vs. true). Given your suggestion, where would I add the modification?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I think you're interpreting it incorrectly or not specifying your event correctly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That's exactly&amp;nbsp;what it should be giving you. Check your log to verify what is being&amp;nbsp;modelled. Note that True is not &amp;nbsp;the same as true as TRUE etc, it is case sensitive. Usually it would be PARAM=REF to get the comparison rather than GLM, but that's&amp;nbsp;ultimately your choice for what suits your analysis. &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You'll see a note like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV id="sasLogNote1_1530366708962" class="sasNote"&gt;NOTE: PROC LOGISTIC is modeling the probability that Pain='No'. One way to change this to model the probability that Pain='Yes' is&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;to specify the response variable option EVENT='Yes'.&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;DIV class="sasNote"&gt;You can add expb to the MODEL options to get the ODDS ratio or the ODDSRATIO statement itself to get the ODDS Ratio estimates.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&lt;SPAN&gt;model PainExists_1y(event='true')=sex cancer DM / link=logit technique=fisher&amp;nbsp;&lt;FONT size="4" color="#0000FF"&gt;&lt;STRONG&gt;expb;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 05 Jul 2018 02:05:29 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-07-05T02:05:29Z</dc:date>
    <item>
      <title>Binary logistic regression output format: false vs. true AS OPPOSED TO true vs. false</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Binary-logistic-regression-output-format-false-vs-true-AS/m-p/475507#M24757</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question regarding the output format in a binary logistic regression. By default, SAS is generating false vs. true format for my binary logistic regression. Is there a way to get this format to be true vs. false instead?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 00:31:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Binary-logistic-regression-output-format-false-vs-true-AS/m-p/475507#M24757</guid>
      <dc:creator>mj8000</dc:creator>
      <dc:date>2018-07-05T00:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Binary logistic regression output format: false vs. true AS OPPOSED TO true vs. false</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Binary-logistic-regression-output-format-false-vs-true-AS/m-p/475508#M24758</link>
      <description>&lt;P&gt;Yes, in the MODEL statement you can specify the definition of an event.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model myVariable (event='False') = .... ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/209871"&gt;@mj8000&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a question regarding the output format in a binary logistic regression. By default, SAS is generating false vs. true format for my binary logistic regression. Is there a way to get this format to be true vs. false instead?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 01:18:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Binary-logistic-regression-output-format-false-vs-true-AS/m-p/475508#M24758</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-05T01:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Binary logistic regression output format: false vs. true AS OPPOSED TO true vs. false</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Binary-logistic-regression-output-format-false-vs-true-AS/m-p/475511#M24759</link>
      <description>&lt;P&gt;Thank you for your response. Here's my code snippet:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods noproctitle;&lt;BR /&gt;ods graphics / imagemap=on;&lt;BR /&gt;&lt;BR /&gt;proc logistic data=Work.SortTempTableSorted&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;plots=(oddsratio(cldisplay=serifarrow) );&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;class sex cancer DM / param=glm;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;model PainExists_1y(event='true')=sex cancer DM / link=logit technique=fisher;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;by pre_op_pain;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case, I want PainExists_1y to be 'true', but I want my classification variable (cancer) to generate odds ratios of true vs. false (right now it's giving me false vs. true). Given your suggestion, where would I add the modification?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 01:49:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Binary-logistic-regression-output-format-false-vs-true-AS/m-p/475511#M24759</guid>
      <dc:creator>mj8000</dc:creator>
      <dc:date>2018-07-05T01:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Binary logistic regression output format: false vs. true AS OPPOSED TO true vs. false</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Binary-logistic-regression-output-format-false-vs-true-AS/m-p/475512#M24760</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;In this case, I want PainExists_1y to be 'true', but I want my classification variable (cancer) to generate odds ratios of true vs. false (right now it's giving me false vs. true). Given your suggestion, where would I add the modification?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I think you're interpreting it incorrectly or not specifying your event correctly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That's exactly&amp;nbsp;what it should be giving you. Check your log to verify what is being&amp;nbsp;modelled. Note that True is not &amp;nbsp;the same as true as TRUE etc, it is case sensitive. Usually it would be PARAM=REF to get the comparison rather than GLM, but that's&amp;nbsp;ultimately your choice for what suits your analysis. &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You'll see a note like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV id="sasLogNote1_1530366708962" class="sasNote"&gt;NOTE: PROC LOGISTIC is modeling the probability that Pain='No'. One way to change this to model the probability that Pain='Yes' is&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;to specify the response variable option EVENT='Yes'.&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;DIV class="sasNote"&gt;You can add expb to the MODEL options to get the ODDS ratio or the ODDSRATIO statement itself to get the ODDS Ratio estimates.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&lt;SPAN&gt;model PainExists_1y(event='true')=sex cancer DM / link=logit technique=fisher&amp;nbsp;&lt;FONT size="4" color="#0000FF"&gt;&lt;STRONG&gt;expb;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Jul 2018 02:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Binary-logistic-regression-output-format-false-vs-true-AS/m-p/475512#M24760</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-05T02:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Binary logistic regression output format: false vs. true AS OPPOSED TO true vs. false</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Binary-logistic-regression-output-format-false-vs-true-AS/m-p/476166#M24796</link>
      <description>&lt;P&gt;&amp;nbsp;I think I may have been running my analysis backwards. I think I need to set my "Event of interest" = false, so that any Odds Ratio that I see greater than 1 means there's a higher chance of my event happening. Is this a correct interpretation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Previously I had set my "Event of interest" = true.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 22:06:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Binary-logistic-regression-output-format-false-vs-true-AS/m-p/476166#M24796</guid>
      <dc:creator>mj8000</dc:creator>
      <dc:date>2018-07-06T22:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Binary logistic regression output format: false vs. true AS OPPOSED TO true vs. false</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Binary-logistic-regression-output-format-false-vs-true-AS/m-p/476167#M24797</link>
      <description>&lt;P&gt;If your event is true, you get the odds of getting a true event compared to either a single unit increase for a continuous variable and compared to your reference level with a PARAM=REF model. If you're using GLM, I'm not sure how to interpret the ratio to be honest.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can work through the second example in PROC LOGISTIC and it has the odds ratio with a categorical predictor and how it's interpreted halfway through and then replicate that on your data once you understand how it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/209871"&gt;@mj8000&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;I think I may have been running my analysis backwards. I think I need to set my "Event of interest" = false, so that any Odds Ratio that I see greater than 1 means there's a higher chance of my event happening. Is this a correct interpretation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Previously I had set my "Event of interest" = true.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 22:21:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Binary-logistic-regression-output-format-false-vs-true-AS/m-p/476167#M24797</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-06T22:21:06Z</dc:date>
    </item>
  </channel>
</rss>

