/* Lesson 12-2 */ /* File Name = les1202.sas 10/14/99 */ options linesize=72 pagesize=20; data gakusei; infile 'all99.dat'; input seibetsu $ height weight chest jitaku $ kodukai; proc print data=gakusei(obs=10); run; proc corr data=gakusei; where seibetsu='M'; run; proc reg data=gakusei; model weight=height chest; where seibetsu='M'; output out=o_reg1 predicted=pred1 residual=resid1; run; proc print data=o_reg1(obs=15); run; proc plot data=o_reg1; where seibetsu='M' and weight^=. and height^=. and chest^=.; plot weight*chest; plot pred1*weight; plot resid1*pred1; plot resid1*height; plot resid1*chest; run;