<?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: Issue with Code for Dichotomizing Variable for Logistic Regression in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Issue-with-Code-for-Dichotomizing-Variable-for-Logistic/m-p/686750#M24458</link>
    <description>Your first set of code is wrong, it's missing a SET statement. &lt;BR /&gt;&lt;BR /&gt;Your second is correct, if it's not working explain why/how and post your code as TEXT (not an image)  with the log.</description>
    <pubDate>Fri, 25 Sep 2020 16:19:08 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-09-25T16:19:08Z</dc:date>
    <item>
      <title>Issue with Code for Dichotomizing Variable for Logistic Regression</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Issue-with-Code-for-Dichotomizing-Variable-for-Logistic/m-p/686746#M24456</link>
      <description>&lt;P&gt;Hi, I am a graduate student who is very new to SAS. I am trying to dichotomize a variable to use for logistic regression. The code in the top block ran fine and the new variables were created, but the bottom code will not run. Does anybody see any obvious errors?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Emmason&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-09-25 at 12.05.02 PM.png" style="width: 669px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49797i4FCB41C021DAFBFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-09-25 at 12.05.02 PM.png" alt="Screen Shot 2020-09-25 at 12.05.02 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 16:12:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Issue-with-Code-for-Dichotomizing-Variable-for-Logistic/m-p/686746#M24456</guid>
      <dc:creator>emmasongrace</dc:creator>
      <dc:date>2020-09-25T16:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Code for Dichotomizing Variable for Logistic Regression</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Issue-with-Code-for-Dichotomizing-Variable-for-Logistic/m-p/686749#M24457</link>
      <description>&lt;P&gt;You do not need to dichotomize the variables, the CLASS statement will account for that correct, the last example is the most relevant.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stats.idre.ucla.edu/unlinked/sas-logistic/proc-logistic-and-logistic-regression-models/" target="_blank"&gt;https://stats.idre.ucla.edu/unlinked/sas-logistic/proc-logistic-and-logistic-regression-models/&lt;/A&gt;&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/349173"&gt;@emmasongrace&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi, I am a graduate student who is very new to SAS. I am trying to dichotomize a variable to use for logistic regression. The code in the top block ran fine and the new variables were created, but the bottom code will not run. Does anybody see any obvious errors?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Emmason&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-09-25 at 12.05.02 PM.png" style="width: 669px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49797i4FCB41C021DAFBFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-09-25 at 12.05.02 PM.png" alt="Screen Shot 2020-09-25 at 12.05.02 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 16:18:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Issue-with-Code-for-Dichotomizing-Variable-for-Logistic/m-p/686749#M24457</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-09-25T16:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Code for Dichotomizing Variable for Logistic Regression</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Issue-with-Code-for-Dichotomizing-Variable-for-Logistic/m-p/686750#M24458</link>
      <description>Your first set of code is wrong, it's missing a SET statement. &lt;BR /&gt;&lt;BR /&gt;Your second is correct, if it's not working explain why/how and post your code as TEXT (not an image)  with the log.</description>
      <pubDate>Fri, 25 Sep 2020 16:19:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Issue-with-Code-for-Dichotomizing-Variable-for-Logistic/m-p/686750#M24458</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-09-25T16:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Code for Dichotomizing Variable for Logistic Regression</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Issue-with-Code-for-Dichotomizing-Variable-for-Logistic/m-p/686776#M24463</link>
      <description>&lt;P&gt;When I see code like your first data step my first question is "Are there values between 3 and 5?"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see a potential for many missing values in your Covidthreat variable. Any values that have mixed values for the 3 dichotomous variables with the code shown will have the threat missing. Which means that either the record will not be used by your model (any variable with missing values used on a model statement will cause the &lt;STRONG&gt;record &lt;/STRONG&gt; to be excluded) or you would have to specify the missing option on a class statement and in effect have a 3 level variable.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 17:01:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Issue-with-Code-for-Dichotomizing-Variable-for-Logistic/m-p/686776#M24463</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-25T17:01:51Z</dc:date>
    </item>
  </channel>
</rss>

