<?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: Creating new variables by grouping existing variable in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Creating-new-variables-by-grouping-existing-variable/m-p/694742#M25143</link>
    <description>&lt;P&gt;Not clear how the result should look like, please explain.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Oct 2020 05:59:02 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2020-10-28T05:59:02Z</dc:date>
    <item>
      <title>Creating new variables by grouping existing variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-new-variables-by-grouping-existing-variable/m-p/694741#M25142</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a dataset that has variables such as basketball baseball football swimming chess softball. I want to&amp;nbsp;categorize the various sports under “high” or “low” risk sport under a new variable risklevel; basketball baseball football=high and&amp;nbsp;swimming chess softball=low.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dataset looks something like below&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;basketball baseball football swimming chess softball&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 05:55:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-new-variables-by-grouping-existing-variable/m-p/694741#M25142</guid>
      <dc:creator>nematullah17</dc:creator>
      <dc:date>2020-10-28T05:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating new variables by grouping existing variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-new-variables-by-grouping-existing-variable/m-p/694742#M25143</link>
      <description>&lt;P&gt;Not clear how the result should look like, please explain.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 05:59:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-new-variables-by-grouping-existing-variable/m-p/694742#M25143</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-10-28T05:59:02Z</dc:date>
    </item>
  </channel>
</rss>

