NOTE: Copyright (c) 1999-2001 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) Proprietary Software Release 8.2 (TS2M0) Licensed to GEORGE WASHINGTON UNIVERSITY-CAMPUSWIDE-T/R, Site 0001180006. NOTE: This session is executing on the WIN_ME platform. NOTE: SAS initialization used: real time 1.92 seconds 1 ****** A_I.sas from old ST210A_i; 2 3 filename saslst 'c:\sasjobs\stat210\jl2003\a_Ilst.pdf'; 4 ods printer pdf file=saslst; NOTE: Writing ODS PRINTER output to DISK destination "c:\sasjobs\stat210\jl2003\a_Ilst.pdf", printer "PDF". 5 6 options formdlim='-'; 7 8 TITLE1 'FITNESS DATA EXAMPLE FROM SAS MANUALS'; 9 10 DATA FITNESS; 11 idno = _N_; 12 13 INPUT AGE WEIGHT OXY RUNTIME RSTPULSE RUNPULSE MAXPULSE; 14 CARDS; NOTE: The data set WORK.FITNESS has 31 observations and 8 variables. NOTE: DATA statement used: real time 0.11 seconds 46 ; 47 48 PROC PRINT; 49 NOTE: There were 31 observations read from the data set WORK.FITNESS. NOTE: PROCEDURE PRINT used: real time 0.22 seconds 50 PROC REG ALL DATA=FITNESS; 51 MODEL OXY=RUNTIME AGE WEIGHT RUNPULSE MAXPULSE RSTPULSE 52 /influence collinoint; 53 id idno; 54 OUTPUT OUT=TWO R=R STUDENT=STUDENT COOKD=COOKD 55 H=H COVRATIO=COVRATIO DFFITS=DFFITS; 56 NOTE: 31 observations read. NOTE: 31 observations used in computations. NOTE: The data set WORK.TWO has 31 observations and 14 variables. NOTE: PROCEDURE REG used: real time 0.76 seconds 57 PROC UNIVARIATE FREQ; 58 VAR OXY RUNTIME AGE WEIGHT RSTPULSE RUNPULSE MAXPULSE; 59 TITLE2 'UNIVARIATE DISTRIBUTIONS OF VARIABLES'; 60 NOTE: PROCEDURE UNIVARIATE used: real time 0.65 seconds 61 PROC UNIVARIATE PLOT NORMAL; 62 VAR R STUDENT COOKD H COVRATIO DFFITS; 63 TITLE2 'DISTRIBUTIONS OF INFLUENCE DIAGNOSTICS'; 64 NOTE: PROCEDURE UNIVARIATE used: real time 0.50 seconds 65 DATA STUDENT; SET TWO; IF ABS(STUDENT) GE 2.064; 66 KEEP idno STUDENT OXY RUNTIME AGE WEIGHT RUNPULSE MAXPULSE RSTPULSE; 67 TITLE3 'STUDENTIZED RESIDUALS > 95% T VALUE 2-SIDED'; NOTE: There were 31 observations read from the data set WORK.TWO. NOTE: The data set WORK.STUDENT has 2 observations and 9 variables. NOTE: DATA statement used: real time 0.04 seconds 68 PROC SORT; BY idno; 69 NOTE: There were 2 observations read from the data set WORK.STUDENT. NOTE: The data set WORK.STUDENT has 2 observations and 9 variables. NOTE: PROCEDURE SORT used: real time 0.00 seconds 70 DATA COOKD; SET TWO; IF COOKD GE 0.389; 71 KEEP idno COOKD OXY RUNTIME AGE WEIGHT RUNPULSE MAXPULSE RSTPULSE; 72 TITLE3 'COOKS D > F CUTOFF'; NOTE: There were 31 observations read from the data set WORK.TWO. NOTE: The data set WORK.COOKD has 0 observations and 9 variables. NOTE: DATA statement used: real time 0.00 seconds 73 PROC SORT; BY idno; 74 NOTE: Input data set is empty. NOTE: The data set WORK.COOKD has 0 observations and 9 variables. NOTE: PROCEDURE SORT used: real time 0.00 seconds 75 DATA H; SET TWO; IF H GE 0.40538; 76 KEEP idno H OXY RUNTIME AGE WEIGHT RUNPULSE MAXPULSE RSTPULSE; 77 TITLE3 'LEVERAGE > UPPER 95 PERCENTILE, UNADJUSTED'; NOTE: There were 31 observations read from the data set WORK.TWO. NOTE: The data set WORK.H has 2 observations and 9 variables. NOTE: DATA statement used: real time 0.05 seconds 78 PROC SORT; BY idno; 79 NOTE: There were 2 observations read from the data set WORK.H. NOTE: The data set WORK.H has 2 observations and 9 variables. NOTE: PROCEDURE SORT used: real time 0.00 seconds 80 DATA COVRATIO; SET TWO; IF (COVRATIO GE 1.677) OR (COVRATIO LE 0.323); 81 KEEP idno COVRATIO OXY RUNTIME AGE WEIGHT RUNPULSE MAXPULSE RSTPULSE; 82 TITLE3 'COVRATIO > APPROXIMATE CUTOFFS'; NOTE: There were 31 observations read from the data set WORK.TWO. NOTE: The data set WORK.COVRATIO has 14 observations and 9 variables. NOTE: DATA statement used: real time 0.00 seconds 83 PROC SORT; BY idno; 84 NOTE: There were 14 observations read from the data set WORK.COVRATIO. NOTE: The data set WORK.COVRATIO has 14 observations and 9 variables. NOTE: PROCEDURE SORT used: real time 0.00 seconds 85 DATA DFFITS; SET TWO; IF (DFFITS LT -0.75) OR (DFFITS GT 1.1); 86 KEEP idno DFFITS OXY RUNTIME AGE WEIGHT RUNPULSE MAXPULSE RSTPULSE; 87 TITLE3 88 'DFFITS EXCEEDING EXTREME PERCENTILES BASED ON THE PROC UNIVARIATE '; NOTE: There were 31 observations read from the data set WORK.TWO. NOTE: The data set WORK.DFFITS has 2 observations and 9 variables. NOTE: DATA statement used: real time 0.00 seconds 89 PROC SORT; BY idno; 90 NOTE: There were 2 observations read from the data set WORK.DFFITS. NOTE: The data set WORK.DFFITS has 2 observations and 9 variables. NOTE: PROCEDURE SORT used: real time 0.04 seconds 91 DATA; MERGE STUDENT COOKD H COVRATIO DFFITS; BY idno; NOTE: There were 2 observations read from the data set WORK.STUDENT. NOTE: There were 0 observations read from the data set WORK.COOKD. NOTE: There were 2 observations read from the data set WORK.H. NOTE: There were 14 observations read from the data set WORK.COVRATIO. NOTE: There were 2 observations read from the data set WORK.DFFITS. NOTE: The data set WORK.DATA1 has 14 observations and 13 variables. NOTE: DATA statement used: real time 0.00 seconds 92 PROC PRINT; VAR idno OXY RUNTIME AGE WEIGHT RUNPULSE MAXPULSE RSTPULSE 93 STUDENT COOKD H COVRATIO DFFITS; 94 TITLE3 'OBSERVATIONS FLAGGED BY ANY CRITERIA'; 95 96 RUN; NOTE: There were 14 observations read from the data set WORK.DATA1. NOTE: PROCEDURE PRINT used: real time 0.05 seconds 97 98 ods printer close; NOTE: ODS PRINTER printed 38 pages to c:\sasjobs\stat210\jl2003\a_Ilst.pdf. 99 RUN;