/* Lesson 05-6 */ /* File Name = les0506.sas 10/30/18 */ options linesize=72 pagesize=20; options nocenter linesize=78 pagesize=30; proc printto log = 'Kougi/les0506_log.txt' print = 'Kougi/les0506_Results.txt' new; ods listing gpath='Kougi/SAS_ODS99'; data food; infile 'Kougi/food.dat'; input X01-X10; label X01='M(-15)' X02='M(16-20)' X03='M(21-30)' X04='M(31-40)' X05='M(41-)' X06='F(-15)' X07='F(16-20)' X08='F(21-30)' X09='F(31-40)' X10='F(41-)'; proc print data=food(obs=10); run; proc factor data=food nfactor=3 out=fscore; var X01-X10; run; proc print data=fscore; run; proc plot data=fscore; plot factor1*factor2/vref=0.0 href=0.0; plot factor2*factor3/vref=0.0 href=0.0; run;