Programming the statistical procedures from SAS

PROC HPSPLIT: How to force a variable into a decision tree (SAS 9.4)

Reply
Regular Learner
Posts: 1

PROC HPSPLIT: How to force a variable into a decision tree (SAS 9.4)

[ Edited ]

Hi all!

 

I need to force a variable in a decision tree. My code is the following:

 

proc hpsplit data = &lib..bds_vars maxdepth = 4 maxbranch = 4 nodestats=DT_1
target ind_default_7;

input risk_level/*the one whom is relevant*/ cliente_type/*the one I need to force*/  ;
code file="%sysfunc(pathname(work))/model_dtree.sas"; 
rules file="C:\Users...\Results\rules_dtree.txt";
output importance = imporvar; 
run;

NOTE. the criterion choosen is ENTROPIA (SAS default criterion)

 

Thanks a lot,

AP

Ask a Question
Discussion stats
  • 0 replies
  • 161 views
  • 1 like
  • 1 in conversation