还没见过这么懒的斑竹,有点无语,人家能画树图,肯定是根据标示来画的呀,不信请看如下:
data stp_1;
set day.stp(obs=10000);
array arr _numeric_;
do over arr;
arr=max(arr,0);
end;
run;
proc varclus data=stp_1 minc=5 maxc=5 outtree=tree;run;
goptions htext=4pct
axis1 order=(0.5 to 1 by 0.1);
axis2 label=none;
proc tree horizontal haxis=axis1 vaxis=axis2;
height _propor_;
id _label_;
run;
运行完后,请斑竹打开输出的tree数据集,可以看到分类标示clus2--clus6和相应的变量,如下:
_NAME_ _PARENT_
。。。。
QUALIFICATION Clus2
ANN_SALARY Clus2
CRLIMIT Clus2
AVAIL_CREDIT Clus2
CASH_LIMIT Clus2
AVAIL_CASH Clus2
TEMP_CRLIMIT Clus2
PERM_CRLIMIT Clus2
ORG_CASH_LIMIT Clus2
ORG_TEMP_CRLIMIT Clus2
ORG_PERM_CRLIMIT Clus2
。。。。。。
|