1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;7071 /* MathReg2.sas */72 %include '/home/brunner0/441s20/readmath2b.sas'; /* Creates data table mathex */NOTE: Format YNFMT is already on the library WORK.FORMATS.NOTE: Format YNFMT has been output.NOTE: Format CRSFMT is already on the library WORK.FORMATS.NOTE: Format CRSFMT has been output.NOTE: Format NFMT is already on the library WORK.FORMATS.NOTE: Format NFMT has been output.NOTE: PROCEDURE FORMAT used (Total process time):real time 0.00 secondsuser cpu time 0.00 secondssystem cpu time 0.00 secondsmemory 244.06kOS Memory 31652.00kTimestamp 02/01/2020 09:52:11 PMStep Count 43 Switch Count 0Page Faults 0Page Reclaims 25Page Swaps 0Voluntary Context Switches 0Involuntary Context Switches 0Block Input Operations 0Block Output Operations 32176 title2 'Residual analysis';177NOTE: The infile '/home/brunner0/441s20/exploremath.data.txt' is:Filename=/home/brunner0/441s20/exploremath.data.txt,Owner Name=brunner0,Group Name=oda,Access Permission=-rw-r--r--,Last Modified=26Jan2020:18:49:34,File Size (bytes)=44583NOTE: 579 records were read from the infile '/home/brunner0/441s20/exploremath.data.txt'.The minimum record length was 75.The maximum record length was 75.NOTE: Missing values were generated as a result of performing an operation on missing values.Each place is given by: (Number of times) at (Line):(Column).99 at 95:24 99 at 134:13NOTE: The data set WORK.MATHEX has 579 observations and 34 variables.NOTE: DATA statement used (Total process time):real time 0.00 secondsuser cpu time 0.00 secondssystem cpu time 0.00 secondsmemory 880.62kOS Memory 32168.00kTimestamp 02/01/2020 09:52:11 PMStep Count 44 Switch Count 3Page Faults 0Page Reclaims 133Page Swaps 0Voluntary Context Switches 25Involuntary Context Switches 0Block Input Operations 0Block Output Operations 520178 proc reg plots(only) = ResidualPlot data=mathex;179 title3 'Model H: hsgpa hscalc hsengl totscore';180 model grade = hsgpa hscalc hsengl totscore;181 output out = Explor predicted = yhat182 residual = resid183 rstudent = delstud;184 /* Deleted Studentized Residual */185186 /* Could have included LCL and UCL for upper and lower limits of a187 95% prediction interval for each case in the file */188189190 /* What is a big (Studentized deleted) residual? If the model is correct,191 each one has a t distribution with n-p-1 = 283 df (practically standard192 normal), so the Studentized deleted residual can be treated directly as193 a t-test statistic. Values that are too big in absolute value will cause194 rejection of the null hypothesis that x_i*beta is the same for this case195 and the other n-1 cases. Tests are NOT independent, but use a Bonferroni196 correction for n = 289 tests. Get the critical value from proc iml. */197NOTE: The data set WORK.EXPLOR has 579 observations and 37 variables.NOTE: PROCEDURE REG used (Total process time):real time 0.37 secondsuser cpu time 0.16 secondssystem cpu time 0.02 secondsmemory 19480.59kOS Memory 47556.00kTimestamp 02/01/2020 09:52:11 PMStep Count 45 Switch Count 4Page Faults 0Page Reclaims 4195Page Swaps 0Voluntary Context Switches 273Involuntary Context Switches 1Block Input Operations 0Block Output Operations 1600198 proc iml;NOTE: IML Ready199 title3 'Critical value for Joint t-test on Studentized Residuals';200 Alpha = 0.05/289;200 ! print Alpha;201 Critval = tinv(1-Alpha/2,283);201 ! print Critval;202NOTE: Exiting IML.NOTE: PROCEDURE IML used (Total process time):real time 0.03 secondsuser cpu time 0.04 secondssystem cpu time 0.00 secondsmemory 1010.21kOS Memory 45952.00kTimestamp 02/01/2020 09:52:12 PMStep Count 46 Switch Count 1Page Faults 0Page Reclaims 267Page Swaps 0Voluntary Context Switches 10Involuntary Context Switches 1Block Input Operations 0Block Output Operations 176203 proc univariate normal plot;204 var delstud;205206 /* Tests for normality indicate residuals are not normal. No st resids207 greater than critical value. Next, a few more plots. */208NOTE: PROCEDURE UNIVARIATE used (Total process time):real time 0.27 secondsuser cpu time 0.15 secondssystem cpu time 0.00 secondsmemory 3807.84kOS Memory 47452.00kTimestamp 02/01/2020 09:52:12 PMStep Count 47 Switch Count 0Page Faults 0Page Reclaims 567Page Swaps 0Voluntary Context Switches 292Involuntary Context Switches 0Block Input Operations 0Block Output Operations 528209 proc sgplot;210 title3 'Plot of Y-hat by Y';211 scatter y=grade x=yhat;212213 proc sgplot;NOTE: PROCEDURE SGPLOT used (Total process time):real time 0.15 secondsuser cpu time 0.06 secondssystem cpu time 0.01 secondsmemory 1531.93kOS Memory 47408.00kTimestamp 02/01/2020 09:52:12 PMStep Count 48 Switch Count 2Page Faults 0Page Reclaims 330Page Swaps 0Voluntary Context Switches 197Involuntary Context Switches 0Block Input Operations 0Block Output Operations 536NOTE: There were 579 observations read from the data set WORK.EXPLOR.214 title3 'Calculus sub-test by deleted studentized residual';215 scatter x=calc y=delstud;216217 proc sgplot;NOTE: PROCEDURE SGPLOT used (Total process time):real time 0.14 secondsuser cpu time 0.05 secondssystem cpu time 0.00 secondsmemory 2551.56kOS Memory 47920.00kTimestamp 02/01/2020 09:52:12 PMStep Count 49 Switch Count 2Page Faults 0Page Reclaims 392Page Swaps 0Voluntary Context Switches 196Involuntary Context Switches 0Block Input Operations 0Block Output Operations 560NOTE: There were 579 observations read from the data set WORK.EXPLOR.218 title3 'Pre-calculus sub-test by deleted studentized residual';219 scatter x=precalc y=delstud;220221 proc sgplot;NOTE: PROCEDURE SGPLOT used (Total process time):real time 0.12 secondsuser cpu time 0.06 secondssystem cpu time 0.01 secondsmemory 2281.15kOS Memory 47920.00kTimestamp 02/01/2020 09:52:12 PMStep Count 50 Switch Count 2Page Faults 0Page Reclaims 305Page Swaps 0Voluntary Context Switches 198Involuntary Context Switches 0Block Input Operations 0Block Output Operations 552NOTE: There were 579 observations read from the data set WORK.EXPLOR.222 title3 'Mother tongue by deleted studentized residual';223 scatter x=mtongue y=delstud;224225 quit;NOTE: PROCEDURE SGPLOT used (Total process time):real time 0.14 secondsuser cpu time 0.05 secondssystem cpu time 0.00 secondsmemory 2277.37kOS Memory 47920.00kTimestamp 02/01/2020 09:52:12 PMStep Count 51 Switch Count 2Page Faults 0Page Reclaims 289Page Swaps 0Voluntary Context Switches 197Involuntary Context Switches 0Block Input Operations 0Block Output Operations 536NOTE: There were 579 observations read from the data set WORK.EXPLOR.226227 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;238