options nocenter ps=35 ls=72; data example; input batch percent; cards; 1 74 1 76 1 75 2 68 2 71 2 72 3 75 3 77 3 77 4 72 4 74 4 73 5 79 5 81 5 79 ; proc glm; class batch; model percent=batch; random batch; output out=diag r=res p=pred; proc plot; plot res*pred; proc varcomp method=type1; class batch; model percent = batch; proc mixed cl; class batch; model percent = ; random batch; run;