<?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 streamline process of taking a categorical (free text) variable to a categorical (num) on in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-streamline-process-of-taking-a-categorical-free-text/m-p/609200#M17840</link>
    <description>&lt;P&gt;If this is a one time process and only about mapping 117 values to 35 then doing this "manually" in code appears as the quickes solution to me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of IF/THEN you could create and use a SAS format.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2019 22:11:25 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2019-12-03T22:11:25Z</dc:date>
    <item>
      <title>How to streamline process of taking a categorical (free text) variable to a categorical (num) one</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-streamline-process-of-taking-a-categorical-free-text/m-p/609166#M17826</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently attempting to create a new database that is just an improved version of one already in existence. One of the big problems (and massive eyesore) of the old dataset is that a particular variable (genotype) is a free text categorical variable so if you misspelled a diagnosis or accidentally added an extra space it counts that as a new level of that variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To paint the picture of how annoying this is and why we need to change it for the new database: This variable has approximately 35 levels that we are interested in but the current database has about 117 unique values for that variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to consolidate the old diagnoses into the new format (which is a categorical variable that takes a value between 1-13, where a value of 12 allows for a drop-down box to free text if in Redcap). Is there a way to quicken the process of changing the levels so that they don't repeat with weird (and useless) additions or am I about to just write a massive "if-then" statement?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 20:41:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-streamline-process-of-taking-a-categorical-free-text/m-p/609166#M17826</guid>
      <dc:creator>amail94</dc:creator>
      <dc:date>2019-12-03T20:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to streamline process of taking a categorical (free text) variable to a categorical (num) on</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-streamline-process-of-taking-a-categorical-free-text/m-p/609168#M17827</link>
      <description>Does this need to repeatable or is this a one time process? If it's one time, then use Open Refine which is great to help you clean up categories quickly. But otherwise you're stuck writing IF/THEN statements. You could try fuzzy matching but you don't have much data so cleaning  it manually is the fastest approach but won't scale though.</description>
      <pubDate>Tue, 03 Dec 2019 20:43:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-streamline-process-of-taking-a-categorical-free-text/m-p/609168#M17827</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-12-03T20:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to streamline process of taking a categorical (free text) variable to a categorical (num) on</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-streamline-process-of-taking-a-categorical-free-text/m-p/609173#M17830</link>
      <description>&lt;P&gt;Ok, I was worried that was probably the better, albeit not quickest, solution. It will be a one-time process (in theory) since once the new database goes live your only choice will be to select a value between 1-13 corresponding to that diagnosis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you say fuzzy matching, are you talking about the COMPGED function?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 20:49:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-streamline-process-of-taking-a-categorical-free-text/m-p/609173#M17830</guid>
      <dc:creator>amail94</dc:creator>
      <dc:date>2019-12-03T20:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to streamline process of taking a categorical (free text) variable to a categorical (num) on</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-streamline-process-of-taking-a-categorical-free-text/m-p/609188#M17834</link>
      <description>There's more than one way to do fuzzy matching, but compged is a good start.</description>
      <pubDate>Tue, 03 Dec 2019 21:35:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-streamline-process-of-taking-a-categorical-free-text/m-p/609188#M17834</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-12-03T21:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to streamline process of taking a categorical (free text) variable to a categorical (num) on</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-streamline-process-of-taking-a-categorical-free-text/m-p/609200#M17840</link>
      <description>&lt;P&gt;If this is a one time process and only about mapping 117 values to 35 then doing this "manually" in code appears as the quickes solution to me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of IF/THEN you could create and use a SAS format.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 22:11:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-streamline-process-of-taking-a-categorical-free-text/m-p/609200#M17840</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-12-03T22:11:25Z</dc:date>
    </item>
  </channel>
</rss>

