BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
newsasuser2017
Fluorite | Level 6

I am trying to run a decision tree analysis in Enterprise Miner. I have 6 variables (lets say A-F) which I am using as the inputs and have one binary target variable. When I run the analysis, I get a couple leaf nodes where the variables are repeated. For e.g. the analysis finds A as the strongest predictor and uses that as the root node and then halfway through one of the branches uses A again as the splitter variable. Is there a way I can prevent this from happening and force it to use each variable as the splitter variable only once at the maximum? I have SAS 9.4.

1 ACCEPTED SOLUTION

Accepted Solutions
art297
Opal | Level 21

I don't know if the option is in EM's decision tree, but both proc split and proc hpsplit have an option that does that, namely USEVARONCE (see: http://support.sas.com/documentation/cdl/en/stathpug/67524/HTML/default/viewer.htm#stathpug_hpsplit_... ). You might want to check to see if it is available in EM's decision tree node.

 

Art, CEO, AnalystFinder.com

 

View solution in original post

1 REPLY 1
art297
Opal | Level 21

I don't know if the option is in EM's decision tree, but both proc split and proc hpsplit have an option that does that, namely USEVARONCE (see: http://support.sas.com/documentation/cdl/en/stathpug/67524/HTML/default/viewer.htm#stathpug_hpsplit_... ). You might want to check to see if it is available in EM's decision tree node.

 

Art, CEO, AnalystFinder.com

 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1086 views
  • 0 likes
  • 2 in conversation