# 1_1 - plot GPA * ACT / haxis=axis1 vaxis=axis2; run;...

This preview shows page 1. Sign up to view the full content.

data a1; infile 'C:\Documents and Settings\Administrator\My Documents\Lectures\2009- 1st\Statistics\SAS Files\Data files\ch01pr19.dat'; input GPA ACT; proc print data=a1; run; proc sort data=a1; by ACT; run; proc print data=a1; run; /*Problem 1-a) gplot*/ symbol1 v=circle i=sm90; title1 'Grade Point Average-smooting #90'; title2 'Scatter plot of GPA vs. ACT with Smoothing Curve'; axis1 label=('ACT score'); axis2 label=(angle=90 'GPA'); proc gplot data=a1;
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: plot GPA * ACT / haxis=axis1 vaxis=axis2; run; /*Problem 1-b) regression*/ proc reg data=a1; model GPA=ACT/clb; output out=diag p=pred r=resid; run; /*print out data diag which includes predicted values and residuals*/ proc print data=diag;run; /*Testing model by looking residual vs. predicted value or (X value)*/ proc gplot data=diag; plot resid*pred / haxis=axis1 vaxis=axis2 vref=0; run; quit;...
View Full Document

## This note was uploaded on 08/28/2011 for the course STAT 00000 taught by Professor - during the Spring '11 term at Purdue University-West Lafayette.

Ask a homework question - tutors are online