options ls=84 ps=55;
title 'SAS Factor Analysis example1';
data spearman (type=corr);
_type_='corr';
if _n_=1 then _type_='N';
infile cards missover;
input _name_$ c f e m d mu;
datalines;
N 33
c 1.0
f .83 1.0
e .78 .67 1.0
m .70 .67 .64 1.0
d .66 .65 .54 .45 1.0
mu .63 .57 .51 .51 .40 1.0
;
proc print data=spearman;
run;
ods html;
proc factor data=spearman method=prin res scree;
var c f e m d mu;
title2 'Princial Component Method';
run;
ods html close;
proc factor data=spearman method=prin res nfact=2;
title2 'PCM: Res matrix for nfact=2';
run;
proc factor data=spearman method=prin res nfact=3;
title2 'PCM: Res matrix for nfact=3';
run;
proc factor data=spearman method=prin res nfact=4;
title2 'PCM: Res matrix for nfact=4';
run;