options ls=78;

 

data cls8;

      infile 'class8.txt';

      input sn success GRE GPA exercise tv;

run;

 

proc print data=cls8;

run;

 

proc gplot data=cls8;

      plot success*GRE success*GPA success*exercise success*tv;

      title 'Scatterplots for All Variables by Success';

run;

 

proc corr data=cls8;

      var success GRE GPA exercise tv;

      title 'Correlations for All Variables';

run;

proc reg data=cls8;

      model success=GPA;

      var GRE exercise tv;

      title 'Regression of Success by GPA';

run;

      plot success*GPA pred.*GPA /overlay;

      title 'Plot of Success by GPA';

run;

      plot r.*GRE;

      title 'Plot of model residuals by GRE';

run;

      plot r.*exercise;

      title 'Plot of model residuals by excersize';

run;

      plot r.*tv;

      title 'Plot of model residuals by tv';

run;

 

proc reg data=cls8;

      model success=GPA GRE;

      var exercise tv;

      title 'Regression of Success by GPA and GRE';

run;

      plot r.*pred.;

      title 'Plot of residuals by predicted';

run;

      plot r.*exercise;

      title 'Plot of model residuals by excersize';

run;

      plot r.*tv;

      title 'Plot of model residuals by tv';

run;

 

quit;