/* ------------------------------------------------------------- FILE: multreg.ooutlier DATA: Fabricated data on a class of students: test scores, homework scores, and final examination scores for a class of 15 students. The goal is to predict final exam score form previous test scores and homework. PURPOSE: The goal is to predict final exam score form previous test scores and homework. ------------------------------------------------------------- */ OPTIONS NOCENTER NODATE PAGE=1 LINESIZE=80; TITLE 'Example of an outlier in PROC REG'; DATA MULTREG2; INPUT TESTS HOMEWORK FINAL; CARDS; 70 6.6 64 82 8.1 84 61 5.0 53 89 8.9 87 76 6.4 74 84 9.0 90 83 7.4 78 79 7.7 83 94 8.8 84 91 5.2 91 85 8.7 89 90 9.6 92 ; PROC REG SIMPLE CORR; MODEL FINAL=HOMEWORK TESTS / COLLINOINT STB VIF TOL INFLUENCE; * * COLLINOINT = Collinearity diagnostics * VIF = variance inflation factor * TOL = tolerance * INFLUENCE = various indices for the influence of each * observation for the regression model. *; RUN; REWEIGHT OBS.=10; REFIT; MODEL FINAL=HOMEWORK TESTS / COLLINOINT STB VIF TOL INFLUENCE; RUN;