<?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 Need help with my logistic regression coding! in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-help-with-my-logistic-regression-coding/m-p/357286#M83857</link>
    <description>&lt;P&gt;I am using SAS 9.4 to run a logistic regression predicting 5% weight loss (fiverper, 0 =No, 1 =yes) with time overweight (continuous variables) as the independent variable -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is the first way I tried it -&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic descending;&lt;BR /&gt;class Fiveper (param=ref ref='1');&lt;BR /&gt;model time= now weight bmi raceth0_1 raceth0_2 college status level binge;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;EM&gt;** QUESTION** Do I need to class my other dichotomous variables - college, status, level, binge - or are they ref =0 automatically?&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is the second way I tried it -&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data =dummy_11;&lt;BR /&gt;class fiveper (ref = "1") raceth (ref = "0")college (ref="1") status (ref="1") level (ref="1") binge (ref="1") / param = ref;&lt;BR /&gt;model fiveper = now weight bmi raceth college status level binge / link = glogit;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the second way, I feel like it is not reference correctly, even though I put college (ref="1') it is coming up in the odds ratios tables as college 0 vs 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13804i9F288228BB7D6959/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="oddsratios.png" title="oddsratios.png" /&gt;</description>
    <pubDate>Tue, 09 May 2017 19:39:50 GMT</pubDate>
    <dc:creator>immy87</dc:creator>
    <dc:date>2017-05-09T19:39:50Z</dc:date>
    <item>
      <title>Need help with my logistic regression coding!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-with-my-logistic-regression-coding/m-p/357286#M83857</link>
      <description>&lt;P&gt;I am using SAS 9.4 to run a logistic regression predicting 5% weight loss (fiverper, 0 =No, 1 =yes) with time overweight (continuous variables) as the independent variable -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is the first way I tried it -&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic descending;&lt;BR /&gt;class Fiveper (param=ref ref='1');&lt;BR /&gt;model time= now weight bmi raceth0_1 raceth0_2 college status level binge;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;EM&gt;** QUESTION** Do I need to class my other dichotomous variables - college, status, level, binge - or are they ref =0 automatically?&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is the second way I tried it -&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data =dummy_11;&lt;BR /&gt;class fiveper (ref = "1") raceth (ref = "0")college (ref="1") status (ref="1") level (ref="1") binge (ref="1") / param = ref;&lt;BR /&gt;model fiveper = now weight bmi raceth college status level binge / link = glogit;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the second way, I feel like it is not reference correctly, even though I put college (ref="1') it is coming up in the odds ratios tables as college 0 vs 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13804i9F288228BB7D6959/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="oddsratios.png" title="oddsratios.png" /&gt;</description>
      <pubDate>Tue, 09 May 2017 19:39:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-with-my-logistic-regression-coding/m-p/357286#M83857</guid>
      <dc:creator>immy87</dc:creator>
      <dc:date>2017-05-09T19:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with my logistic regression coding!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-with-my-logistic-regression-coding/m-p/357295#M83861</link>
      <description>&lt;P&gt;You set the reference level equal to 0. So the odds ratio will compare all other values to the reference level, 1. The 'other' values are 0, therefore the odds ratio becomes 0 vs 1.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second method is correct, especially if you're unsure of interpretations.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 20:14:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-with-my-logistic-regression-coding/m-p/357295#M83861</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-09T20:14:55Z</dc:date>
    </item>
  </channel>
</rss>

