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