BookmarkSubscribeRSS Feed
DavidLie
Obsidian | Level 7

Hi all,

 

I am currently working on a project that requires me to do some classification, so I thought of PROC HPSPLIT. Particularly, I am interested to look at the subtree that it produced. However, as I am working on 5 different variables and there is one nominal variable (account) that has about 100 levels, it seems that the subtree outcome was only shown for the first three decisions. Is there a way that the PROC HPSPLIT can return me with a complete decision tree?

 

proc hpsplit data=data.trial1 seed=123;
class ATT_Type account att_war_d;
model ln_eq_sales=ln_eq_price ATT_Type account att_war_d ln_cost ln_btu;
run;

Your guidance will be much appreciated. Thank you in advance and have a good day.

 

Best,
David

1 REPLY 1
WendyCzika
SAS Employee

I think I know what you're asking about, but not 100% sure so if you could include a screenshot, that would be helpful.

If it's about how sometimes you only see part of the rule in the HP Tree results in the Tree plot, with a "..." at the end, in that case you might have to look at the score code or Node Rules to see the entire rule.

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
  • 1 reply
  • 1198 views
  • 0 likes
  • 2 in conversation