20.0相对于之前的版本好像是少了一些选项,你可以试试这段程序:
DATASET ACTIVATE DataSet1.
TWOSTEP CLUSTER
/CATEGORICAL VARIABLES=G1 G2 /(分类变量)
/CONTINUOUS VARIABLES=C1 C2 C3 /(连续变量)
/DISTANCE LIKELIHOOD
/NUMCLUSTERS AUTO 15 BIC
/HANDLENOISE 0
/MEMALLOCATE 64
/CRITERIA INITHRESHOLD(0) MXBRANCH(8) MXLEVEL(3)
/PLOT BARFREQ
VARCHART COMPARE BYCLUSTER
CONFIDENCE 95
/PRINT IC COUNT SUMMARY
/SAVE VARIABLE=TSC_1.
AIM TSC_1
/CATEGORICAL G1 G2 /(分类变量)
/CONTINUOUS C1 C2 C3 /(连续变量)
/PLOT ERRORBAR CATEGORY IMPORTANCE (X=GROUP Y=TEST)
/CRITERIA ADJUST=BONFERRONI CI=95 SHOWREFLINE=YES
HIDENOTSIG =NO.
|