/* Lesson 15-1 */ /* File Name = les1501.sas 07/25/01 */ options linesize=72 pagesize=20; data gakusei; infile 'all01.prn'; input seibetsu $ height weight chest jitaku $ kodukai; proc print data=gakusei(obs=10); run; proc corr data=gakusei; where seibetsu='M' and weight<85; run; proc reg data=gakusei; model weight=height chest; where seibetsu='M' and weight<85; output out=outreg1 predicted=pred1 residual=resid1; run; proc print data=outreg1(obs=15); run; proc plot data=outreg1; where seibetsu='M' and weight^=. and height^=. and chest^=. and weight<85; plot weight*chest; plot weight*pred1; plot resid1*pred1; plot resid1*height; plot resid1*chest; plot resid1*weight; run; proc univariate data=outreg1 plot normal; where seibetsu='M' and weight^=. and height^=. and chest^=. and weight<85; var resid1; var weight height chest; run;