<?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 with Categorical Independent Variables in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356419#M23463</link>
    <description>&lt;P&gt;No, I think it's how you're phrasing things.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At any rate, you can control the reference levels, for both independent and dependent variables so you can have the odds ratio come out exactly as you want, as long as you define your model correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2017 14:53:24 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-05-05T14:53:24Z</dc:date>
    <item>
      <title>Logistic Regression with Categorical Independent Variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/355715#M23419</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm running a logistic regression for an alumni population to indicate what factors relate to odds of giving. For gender I have a variable that I coded (1,0) so it's binary. If I want to include degrees (i.e. BA, BS, MBA, and PHD) do I create 4 binary variables so that if someone has a BA then they would have 1 in the BA column but 0 for BS, MBA, and PHD? I just want to take sure I code it correctly. Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 18:41:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/355715#M23419</guid>
      <dc:creator>mmagnuson</dc:creator>
      <dc:date>2017-05-03T18:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Regression with Categorical Independent Variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/355733#M23421</link>
      <description>&lt;P&gt;Use the CLASS statement for categorical variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check the documentation, there's an example of dealing with categorical variables.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 19:25:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/355733#M23421</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-03T19:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Regression with Categorical Independent Variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356367#M23454</link>
      <description>&lt;P&gt;I used the CLASS statement in a simple logistic regression model with only two independent variables. &amp;nbsp;These variables were &lt;SPAN&gt;Preferred_Prof_Suffix and AlsoParent&lt;/SPAN&gt; . &amp;nbsp;The values were Y&amp;nbsp;o rN . &amp;nbsp;When the model was run the output showed Preferred_Prof_Suffix N&lt;SPAN&gt;&amp;nbsp;and AlsoAParent N. &amp;nbsp;Does this mean the output shows negative responses towards the dependent varaible? Should I interpret the output in terms of the&amp;nbsp;&lt;/SPAN&gt;reciprocal or is there a way for the independent variables to show up as Y in the output?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;output used:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc logistic data=work.work;&lt;BR /&gt;class Preferred_Prof_Suffix AlsoParent;&lt;BR /&gt;model donor(event='1') = Preferred_Prof_Suffix AlsoParent;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 13:22:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356367#M23454</guid>
      <dc:creator>mmagnuson</dc:creator>
      <dc:date>2017-05-05T13:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Regression with Categorical Independent Variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356386#M23455</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/142148"&gt;@mmagnuson&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I used the CLASS statement in a simple logistic regression model with only two independent variables. &amp;nbsp;These variables were &lt;SPAN&gt;Preferred_Prof_Suffix and AlsoParent&lt;/SPAN&gt; . &amp;nbsp;The values were Y&amp;nbsp;o rN . &amp;nbsp;When the model was run the output showed Preferred_Prof_Suffix N&lt;SPAN&gt;&amp;nbsp;and AlsoAParent N. &amp;nbsp;Does this mean the output shows negative responses towards the dependent varaible? Should I interpret the output in terms of the&amp;nbsp;&lt;/SPAN&gt;reciprocal or is there a way for the independent variables to show up as Y in the output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;output used:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc logistic data=work.work;&lt;BR /&gt;class Preferred_Prof_Suffix AlsoParent;&lt;BR /&gt;model donor(event='1') = Preferred_Prof_Suffix AlsoParent;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It's great you show us the code that you are using, but we can't see what you are seeing in the output. Please show us the output so we can understand what the question is.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 13:51:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356386#M23455</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-05-05T13:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Regression with Categorical Independent Variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356387#M23456</link>
      <description>&lt;P&gt;Forgot to attach it. Here is the output.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dependent variable is Donor (1 for yes and 0 for no) if I run this code it looks for an event of 1 which would be a donor but the iv's show up as No. It seems like my output would be "These are the log odds of a person not having this iv if they are a donor which is awkward to explain to NOT look for the iv's of the population. It'd make more sense to describe it saying "these are the log odds of a person HAVING this iv and donating". &amp;nbsp;I'm just not sure if there's a way with the code that I could have the Y value of the iv come up in the output instead of the N value.&lt;/P&gt;&lt;P&gt;Hope I explained it well.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13789i9FC0C1913CB1DF0B/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="output.jpg" title="output.jpg" /&gt;</description>
      <pubDate>Fri, 05 May 2017 14:00:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356387#M23456</guid>
      <dc:creator>mmagnuson</dc:creator>
      <dc:date>2017-05-05T14:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Regression with Categorical Independent Variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356390#M23458</link>
      <description>&lt;P&gt;The documentation is very clear about this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"PROC LOGISTIC detects linear dependency among the last two design variables and sets the parameter for A2(B=2) to zero, resulting in an interpretation of these parameters as if they were reference- or dummy-coded. The REFERENCE or GLM parameterization might be more appropriate for such problems."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, the parameter for the Y levels are set to zero, because of the design.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 14:02:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356390#M23458</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-05-05T14:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Regression with Categorical Independent Variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356397#M23459</link>
      <description>&lt;P&gt;It seems like GLM is for more linear models and is different than a logistic model. &amp;nbsp;If I merely reversed my dataset so that Y was no and N was yes would that solve the problem?&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 14:15:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356397#M23459</guid>
      <dc:creator>mmagnuson</dc:creator>
      <dc:date>2017-05-05T14:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Regression with Categorical Independent Variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356411#M23460</link>
      <description>&lt;P&gt;You can set the reference level for the dependent variable as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model dep_var(event='Yes') = ....;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 May 2017 14:41:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356411#M23460</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-05T14:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Regression with Categorical Independent Variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356412#M23461</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/142148"&gt;@mmagnuson&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Forgot to attach it. Here is the output.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My &lt;STRONG&gt;dependent variable is Donor&lt;/STRONG&gt; (1 for yes and 0 for no) if I run this code it looks for an event of 1 which would be a donor but the&lt;STRONG&gt; iv's show up as No&lt;/STRONG&gt;. It seems like my output would be "These are the log odds of a person not having this iv if they are a donor which is awkward to explain to NOT look for the iv's of the population. It'd make more sense to describe it saying "these are the log odds of a &lt;STRONG&gt;person HAVING this iv&lt;/STRONG&gt; and donating". &amp;nbsp;I'm just not sure if there's a way with the code that I could have the Y value of the iv come up in the output instead of the N value.&lt;/P&gt;
&lt;P&gt;Hope I explained it well.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Are you mixing the terms indepdent and dependent variables here?&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 14:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356412#M23461</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-05T14:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Regression with Categorical Independent Variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356414#M23462</link>
      <description>&lt;P&gt;No.&lt;/P&gt;&lt;P&gt;I am trying to figure out what facotors would contribute to someone making a donation or not. &amp;nbsp;My dependent variable is donor and my independent variable is Prereffred Professional Suffix and AlsoParent to figure out if those who have a professional suffix or are also parents will have greater odds of being a donor.&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 14:51:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356414#M23462</guid>
      <dc:creator>mmagnuson</dc:creator>
      <dc:date>2017-05-05T14:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Regression with Categorical Independent Variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356419#M23463</link>
      <description>&lt;P&gt;No, I think it's how you're phrasing things.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At any rate, you can control the reference levels, for both independent and dependent variables so you can have the odds ratio come out exactly as you want, as long as you define your model correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 14:53:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356419#M23463</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-05T14:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Regression with Categorical Independent Variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356445#M23465</link>
      <description>&lt;P&gt;Sorry that I wasn't clear but luckily you were! Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 15:45:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Logistic-Regression-with-Categorical-Independent-Variables/m-p/356445#M23465</guid>
      <dc:creator>mmagnuson</dc:creator>
      <dc:date>2017-05-05T15:45:47Z</dc:date>
    </item>
  </channel>
</rss>

