<?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 how to include a categorical classification variable for logistic regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-a-categorical-classification-variable-for/m-p/479371#M24948</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm dealing with a problem of logistic regression and I am confused about including the categorical classification variable in the model.&lt;/P&gt;&lt;P&gt;The variables in the model are&amp;nbsp;R Age &lt;STRONG&gt;S&lt;/STRONG&gt; Ed Ex0 Ex1 LF M N NW U1 U2 W X respectively;&lt;/P&gt;&lt;P&gt;I have to fit the logistic regression model of high as a function of all variables using Age through X&lt;/P&gt;&lt;P&gt;and treat &lt;STRONG&gt;S&lt;/STRONG&gt; as a categorical classification variable in the model.&lt;/P&gt;&lt;P&gt;Below are my codes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=uscrime;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class S /param=ref ref=first;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model high = Age S Ed Ex0 Ex1 LF M N NW U1 U2 W X;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods select ModelInfo ParameterEstimates Type3 OddsRatios;&lt;BR /&gt;&amp;nbsp;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I in the right way or is there any suggestions? Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jul 2018 04:30:35 GMT</pubDate>
    <dc:creator>233</dc:creator>
    <dc:date>2018-07-19T04:30:35Z</dc:date>
    <item>
      <title>how to include a categorical classification variable for logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-a-categorical-classification-variable-for/m-p/479371#M24948</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm dealing with a problem of logistic regression and I am confused about including the categorical classification variable in the model.&lt;/P&gt;&lt;P&gt;The variables in the model are&amp;nbsp;R Age &lt;STRONG&gt;S&lt;/STRONG&gt; Ed Ex0 Ex1 LF M N NW U1 U2 W X respectively;&lt;/P&gt;&lt;P&gt;I have to fit the logistic regression model of high as a function of all variables using Age through X&lt;/P&gt;&lt;P&gt;and treat &lt;STRONG&gt;S&lt;/STRONG&gt; as a categorical classification variable in the model.&lt;/P&gt;&lt;P&gt;Below are my codes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=uscrime;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class S /param=ref ref=first;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model high = Age S Ed Ex0 Ex1 LF M N NW U1 U2 W X;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods select ModelInfo ParameterEstimates Type3 OddsRatios;&lt;BR /&gt;&amp;nbsp;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I in the right way or is there any suggestions? Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 04:30:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-a-categorical-classification-variable-for/m-p/479371#M24948</guid>
      <dc:creator>233</dc:creator>
      <dc:date>2018-07-19T04:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to include a categorical classification variable for logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-a-categorical-classification-variable-for/m-p/479379#M24949</link>
      <description>&lt;P&gt;seems fine. if you're unsure you could always create the indicator variables for S in a data step and then fit these in model and confirm the results correspond etc&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 05:01:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-a-categorical-classification-variable-for/m-p/479379#M24949</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2018-07-19T05:01:15Z</dc:date>
    </item>
  </channel>
</rss>

