<?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: How to ignore negative numbers used in place of missing data when coding a binary dummy variable in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-ignore-negative-numbers-used-in-place-of-missing-data/m-p/702381#M25902</link>
    <description>&lt;P&gt;Thank you, I appreciate the help!&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2020 02:07:37 GMT</pubDate>
    <dc:creator>Calyn</dc:creator>
    <dc:date>2020-11-30T02:07:37Z</dc:date>
    <item>
      <title>How to ignore negative numbers used in place of missing data when coding a binary dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-ignore-negative-numbers-used-in-place-of-missing-data/m-p/702357#M25898</link>
      <description>&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Hello, I am very new to SAS (just started learning it earlier this semester) and also relatively new to quantitative research (first year PhD student).&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I am trying to run a regression analysis from a very large secondary dataset that is part of multiple waves (but I am only using one of the waves), that has replaced missing values with various negative numbers (-9 for not in wave, -3 for missing answer, -1 for refuse to answer, etc...). I am trying to create a binary variable from a multiple choice survey variable (because I'm not concerned with the degrees to which the behavior is present, only whether it is present or whether it is not present- so if it's present at al it will be 1, and if it's not present at all it will be 0), but I don't know how to handle the negative numbers so that the analysis just ignores them and doesn't include them for that variable.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I apologize if I'm not describing what I'm trying to do properly and if this is something that should be obvious on how to handle it. I appreciate any help figuring out the syntax.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Nov 2020 22:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-ignore-negative-numbers-used-in-place-of-missing-data/m-p/702357#M25898</guid>
      <dc:creator>Calyn</dc:creator>
      <dc:date>2020-11-29T22:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore negative numbers used in place of missing data when coding a binary dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-ignore-negative-numbers-used-in-place-of-missing-data/m-p/702378#M25901</link>
      <description>&lt;P&gt;The best approach would be to fix the data.&amp;nbsp; Get rid of the negative numbers, by changing them to missing values:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if var1=-9 then var1=.A;
else if var1=-3 then var1=.B;
else if var1=-1 then var1=.C;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As you can see, there are a variety of ways to code missing values.&amp;nbsp; You can assign missing values, yet still distinguish the reason why the variable is missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regardless of what should happen next, that's going to be the right beginning.&amp;nbsp; And statistical procedures will recognize those values as missing and (where appropriate) discard the observation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more information, check the documentation for special missing values:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lrcon&amp;amp;docsetTarget=p1xr9fm7y8kek5n1hpj008tnu1a1.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lrcon&amp;amp;docsetTarget=p1xr9fm7y8kek5n1hpj008tnu1a1.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 01:36:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-ignore-negative-numbers-used-in-place-of-missing-data/m-p/702378#M25901</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2020-11-30T01:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore negative numbers used in place of missing data when coding a binary dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-ignore-negative-numbers-used-in-place-of-missing-data/m-p/702381#M25902</link>
      <description>&lt;P&gt;Thank you, I appreciate the help!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 02:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-ignore-negative-numbers-used-in-place-of-missing-data/m-p/702381#M25902</guid>
      <dc:creator>Calyn</dc:creator>
      <dc:date>2020-11-30T02:07:37Z</dc:date>
    </item>
  </channel>
</rss>

