options nodate nonumber ps=55 ls=76; data kidney; input y duration wtgain rep; log10y=log10(y+1); cards; 0.0 1 1 1 2.0 1 1 2 1.0 1 1 3 3.0 1 1 4 0.0 1 1 5 2.0 1 1 6 0.0 1 1 7 5.0 1 1 8 6.0 1 1 9 8.0 1 1 10 2.0 1 2 1 4.0 1 2 2 7.0 1 2 3 12.0 1 2 4 15.0 1 2 5 4.0 1 2 6 3.0 1 2 7 1.0 1 2 8 5.0 1 2 9 20.0 1 2 10 15.0 1 3 1 10.0 1 3 2 8.0 1 3 3 5.0 1 3 4 25.0 1 3 5 16.0 1 3 6 7.0 1 3 7 30.0 1 3 8 3.0 1 3 9 27.0 1 3 10 0.0 2 1 1 1.0 2 1 2 1.0 2 1 3 0.0 2 1 4 4.0 2 1 5 2.0 2 1 6 7.0 2 1 7 4.0 2 1 8 0.0 2 1 9 3.0 2 1 10 5.0 2 2 1 3.0 2 2 2 2.0 2 2 3 0.0 2 2 4 1.0 2 2 5 1.0 2 2 6 3.0 2 2 7 6.0 2 2 8 7.0 2 2 9 9.0 2 2 10 10.0 2 3 1 8.0 2 3 2 12.0 2 3 3 3.0 2 3 4 7.0 2 3 5 15.0 2 3 6 4.0 2 3 7 9.0 2 3 8 6.0 2 3 9 1.0 2 3 10 ; proc means mean std; class duration wtgain; var log10y; run; proc glm; class duration wtgain; model log10y=duration wtgain duration*wtgain; output out=kidout p=yhat r=e; run; proc chart; vbar e; run; proc univariate normal plot; var e; run; proc plot; plot e*yhat; run; quit;