I have the following set of data, and I am trying to do a regression analysis to show a table of predicted values and residuals for the dataset and then plot the residuals versus x on a scatter plot. I have the following code so far and will greatly appreciate any help!
DATA A;
INPUT x y;
cards;
10 8.04
8 6.95
13 7.58
9 8.81
11 8.83
14 9.96
6 7.24
4 4.26
12 10.84
7 4.82
5 5.68
;
proc reg data = A ; ods graphics on;
MODEL y = x;
PLOT RESIDUAL. * x;
run; quit;