<?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 Enterprise Miner Decision Tree Variables in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Enterprise-Miner-Decision-Tree-Variables/m-p/512291#M7495</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to make a decision tree that has several interval variables. Some of these variables have entries = 0, but that isn't the correct value - the 0's indicate missing or unknown values. I was wondering if there's a way I can tell SAS to interpret the 0's as missing values when it's making the decision tree?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Nov 2018 18:23:58 GMT</pubDate>
    <dc:creator>jaycette</dc:creator>
    <dc:date>2018-11-12T18:23:58Z</dc:date>
    <item>
      <title>Enterprise Miner Decision Tree Variables</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Enterprise-Miner-Decision-Tree-Variables/m-p/512291#M7495</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to make a decision tree that has several interval variables. Some of these variables have entries = 0, but that isn't the correct value - the 0's indicate missing or unknown values. I was wondering if there's a way I can tell SAS to interpret the 0's as missing values when it's making the decision tree?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 18:23:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Enterprise-Miner-Decision-Tree-Variables/m-p/512291#M7495</guid>
      <dc:creator>jaycette</dc:creator>
      <dc:date>2018-11-12T18:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Miner Decision Tree Variables</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Enterprise-Miner-Decision-Tree-Variables/m-p/512694#M7499</link>
      <description>&lt;P&gt;There are several ways this can be accomplished. The one I think that gives you the most control is to use the replacement node to replace the "0" with missing. I will attach the following flow in .xml format using the sample DMEXA1. (&lt;A title="importing .xml file into EM" href="https://www.youtube.com/watch?v=oSLrkvQH7iU" target="_blank"&gt;Link to video &lt;/A&gt;on importing the .xml file into Enterprise Miner)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-11-13_13-53-21.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24871i3BDE876B24C61ADB/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-11-13_13-53-21.png" alt="2018-11-13_13-53-21.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have the replacement node you can choose what values you want to replace with a missing value. I used the Apparel variable to create this example. Here I set it up to replace all the "0"s with missing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Click on the replacement node, then click on the property under Interval Variables for the Replacement Editor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-11-13_13-55-59.png" style="width: 234px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24872iD9EBB7AB493ACDD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-11-13_13-55-59.png" alt="2018-11-13_13-55-59.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When the editor opens, click on Apparel variable. Set Limit Method to User Specified, Fill in the values or use the interactive graph to select. This variable has integer values from 0 to 25. Set the Replace Method to Missing and then fill in the Lower Replacement Value &amp;amp; Upper Replacement Values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-11-13_13-56-45.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24873i33725CFB5E2EFF73/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-11-13_13-56-45.png" alt="2018-11-13_13-56-45.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then added an HP Explore to see the results of the replacement node and also a decision tree node. I used the interactive property on the decision tree node to build a tree with Apparel to see that I get the behavior I expected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-11-13_14-02-53.png" style="width: 222px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24874i80497574E52ABC3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-11-13_14-02-53.png" alt="2018-11-13_14-02-53.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the decision tree I created in interactive decision tree by using split on the rep_apparel variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-11-13_13-51-59.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24875iE15FACD523BB463B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-11-13_13-51-59.png" alt="2018-11-13_13-51-59.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should help you create what you want. Good luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 19:09:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Enterprise-Miner-Decision-Tree-Variables/m-p/512694#M7499</guid>
      <dc:creator>MelodieRush</dc:creator>
      <dc:date>2018-11-13T19:09:41Z</dc:date>
    </item>
  </channel>
</rss>

