For example, the following SAS statements create an output data set named b:
proc reg data=a;
model y z=x1 x2;
output out=b
p=yhat zhat
r=yresid zresid;
run;
In addition to the variables in the input data set, b contains the following variables:
yhat, with values that are predicted values of the dependent variable y
zhat, with values that are predicted values of the dependent variable z
yresid, with values that are the residual values of y
zresid, with values that are the residual values of z