/* Lesson 19-1 */ /* File Name = les1901.sas 11/01/08 */ options linesize=72 pagesize=20; data gakusei; infile 'all01.prn'; input seibetsu $ height weight chest jitaku $ kodukai; he10=height*10; we10=weight*1000; ch10=chest*10; proc print data=gakusei(obs=10); var height weight chest he10 we10 ch10; run; proc princomp cov data=gakusei out=out_pr1; var height weight chest he10 we10 ch10; run; proc princomp data=gakusei out=out_pr2; var height weight chest he10 we10 ch10; run; /* proc corr cov outp=corrout data=gakusei; run; proc corr cov outp=corrout2 data=gakusei; run; proc plot data=gakusei; plot height*weight; run; proc princomp cov data=gakusei out=out_prin; var height weight chest; run; proc print data=out_prin(obs=15); run; proc plot data=out_prin; plot prin2*prin1/vref=0 href=0; plot prin3*prin2/vref=0 href=0; plot prin3*prin1/vref=0 href=0; run; proc sort data=out_prin; by prin1; run; proc print data=out_prin; run; */