/* Lesson 11-2 */ /* File Name = les1102.sas 12/18/03 */ options linesize=72 pagesize=20; data gakusei; infile 'all03b.prn' firstobs=2; input sex $ height weight chest jitaku $ kodukai carrier $ tsuuwa; proc print data=gakusei(obs=10); run; proc corr data=gakusei; where sex='M'; run; proc reg data=gakusei; model weight=height chest; where sex='M'; output out=outreg1 predicted=pred1 residual=resid1; run; proc print data=outreg1(obs=15); run; proc plot data=outreg1; where sex='M' and weight^=. and height^=. and chest^=.; plot weight*chest; plot weight*pred1; plot resid1*(pred1 height chest weight)/vref=0; /* plot resid1*pred1 /vref=0; plot resid1*height/vref=0; plot resid1*chest /vref=0; plot resid1*weight/vref=0; */ run; proc univariate data=outreg1 plot normal; var resid1; run;