options ls=85 ps=55;
title 'SAS Factor Analysis Example 2';
data stock;
infile 'D:\T8-4.DAT';
input AlliedChemical Dupont UnionCarbide Exxon Texaco;
run;
proc print data=stock;
run;
proc factor method=prin res scree;
title2 'Principal Component Method';
run;
proc factor method=prin n=2 res scree;
title2 'Principal Component Method nfactor=2';
run;
proc factor method=prin n=3 res scree;
title2 'Principal Component Method nfactor=3';
run;