BookmarkSubscribeRSS Feed

How to color leaves in the Tree Diagram of the Decision Tree node in SAS Model Studio by a statistic

Started ‎09-18-2020 by
Modified ‎05-07-2019 by
Views 2,287



97403_banner_Asked&Answered_aqua.pngHow can I color the leaves of the tree in the Tree Diagram in the results of the Decision Tree node in Model Studio by node purity (probability of event) or correct classification proportion?


By default, for a class target, the leaves of the tree in the Tree Diagram display an embedded histogram of the target level percentages (first image).  To have the leaves instead colored by either the probability of event (purity) or the proportion correctly classified, you can un-check the property “Display embedded bar charts in tree diagram” under Tree Diagram Options in the Decision Tree node.  The leaves can then be colored by the selection in the “Class target node color” property as in the second image.








Version history
Last update:
‎05-07-2019 02:16 PM
Updated by:



Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

Free course: Data Literacy Essentials

Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning  and boost your career prospects.

Get Started

Article Tags