input finalexamscore statsstressacore studyminutes midtermexamscore;
cards;
40 48 41 45
49 49 55 40
71 73 69 69
42 42 52 51
54 49 46 52
45 49 45 41
63 52 66 69
55 58 54 47
46 47 46 39
39 42 35 38
62 63 66 45
52 50 50 55
62 71 65 59
47 41 41 40
53 47 50 52
54 50 41 50
49 53 47 44
53 49 52 49
52 51 61 38
55 69 60 50
;
proc corr;
var finalexamscore = statsstressacore studyminutes midtermexamscore;
proc reg;
model finalexamscore = statsstressacore studyminutes midtermexamscore /stb scorr2 p r vif;
plot residual. * predicted.;
output out=res residual=resid predicted=pred;
proc univariate plot;
var resid;
run;