top of page
PROC CLUSTER

Examples:

  • Cluster analysis with the average method and displaying the hierarchical tree based on r2

PROC CLUSTER DATA=dataset1 METHOD=AVERAGE[CENTROID/WARD] OUTTREE=dataset2 CCC;

VAR x1 x2 ... xn;

RUN;

PROC TREE DATA=dataset2 HAXIS=AXIS1 HORIZONTAL;

HEIGHT _rsq_;

RUN;

PROC FACTOR

Examples:

  • Factorial analysis with the prior communality estimated for each variable to its squared multiple correlation with all other variables, the orthogonal varimax rotation, which corresponds to the specification ROTATE=ORTHOMAX with GAMMA=1 and 6 factors.

PROC FACTOR DATA=vars PRIORS=SMC ROTATE=VARIMAX NFACTORS=6 SCREE;

VAR x1 x2 ... xn;

RUN;

PROC GLM

Examples:

  • General inear model.

PROC GLM DATA=work.vars;

CLASS q1 q2 ... qn;

MODEL y1 y2 = x1 x2 ... xn / SS3;

RUN;

QUIT;

PROC REG

Examples:

  • Ridge regression with durbin-watson test (errors autocorrelation) and variation inflaction factor (multicollinearity) outputs.

PROC REG DATA=dataset OUTVIF TABLEOUT RSQUARE OUTEST=dataset2 RIDGE=0 to 0.02 by 0.005;

MODEL y1 = x1 x2 ... xn / VIF DW;

WHERE x1='value';

RUN;

QUIT;

PROC CLUSTER
PROC FACTOR
PROC GLM
PROC REG

© 2021 Jorge Pinheiro

bottom of page