BookmarkSubscribeRSS Feed
monei011
Calcite | Level 5
I have a modelling excercise where I want to apply a decision tree model to a dataset with continuous variables. The target is a binary outcome. At each node I want division into 3 cases, pure 1; mixed 1,0; and pure 0. and the next split applied to the mixed case, in the same way. The resulting tree looks like a main trunk, with one leaf on either side of each node. Is it possible to constrain the decision tree process to achive this?
2 REPLIES 2
David_Duling
SAS Employee
The software does not support that constraint. In fact, there may be few data sets that contain candidate splits that satisfy that constraint. You may want to use the interactive tree function to explore splits and find out if that is even possible.
monei011
Calcite | Level 5
David, Thanks, I'll have a play. I've also started coding an algorithm to do it directly.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 2 replies
  • 1802 views
  • 0 likes
  • 2 in conversation