1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;7273 /* basicmath.sas */74 title2 'Explore math data with elementary tests';75 %include '/home/u1407221/441s24/SAS06/ReadLabelMath.sas';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: Format NCFMT is already on the library WORK.FORMATS.NOTE: Format NCFMT 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 248.93kOS Memory 29604.00kTimestamp 02/12/2024 06:51:50 PMStep Count 38 Switch Count 0Page Faults 0Page Reclaims 18Page Swaps 0Voluntary Context Switches 0Involuntary Context Switches 0Block Input Operations 0Block Output Operations 32NOTE: The infile '/home/u1407221/441s24/data/math.data.txt' is:Filename=/home/u1407221/441s24/data/math.data.txt,Owner Name=u1407221,Group Name=oda,Access Permission=-rw-r--r--,Last Modified=10Feb2024:16:04:10,File Size (bytes)=90324NOTE: 1158 records were read from the infile '/home/u1407221/441s24/data/math.data.txt'.The minimum record length was 76.The maximum record length was 76.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).180 at 121:24NOTE: The data set WORK.MATH has 1158 observations and 26 variables.NOTE: DATA statement used (Total process time):real time 0.03 secondsuser cpu time 0.00 secondssystem cpu time 0.00 secondsmemory 977.00kOS Memory 30376.00kTimestamp 02/12/2024 06:51:50 PMStep Count 39 Switch Count 2Page Faults 0Page Reclaims 147Page Swaps 0Voluntary Context Switches 20Involuntary Context Switches 0Block Input Operations 0Block Output Operations 520NOTE: There were 1158 observations read from the data set WORK.MATH.NOTE: The data set WORK.REPLIC has 579 observations and 26 variables.NOTE: DATA statement used (Total process time):real time 0.00 secondsuser cpu time 0.01 secondssystem cpu time 0.00 secondsmemory 1156.90kOS Memory 30636.00kTimestamp 02/12/2024 06:51:50 PMStep Count 40 Switch Count 2Page Faults 0Page Reclaims 111Page Swaps 0Voluntary Context Switches 11Involuntary Context Switches 0Block Input Operations 0Block Output Operations 264NOTE: There were 1158 observations read from the data set WORK.MATH.NOTE: The data set WORK.EXPLORE has 579 observations and 17 variables.NOTE: DATA statement used (Total process time):real time 0.00 secondsuser cpu time 0.00 secondssystem cpu time 0.00 secondsmemory 1137.53kOS Memory 30636.00kTimestamp 02/12/2024 06:51:50 PMStep Count 41 Switch Count 2Page Faults 0Page Reclaims 110Page Swaps 0Voluntary Context Switches 11Involuntary Context Switches 0Block Input Operations 0Block Output Operations 264198199 /* It's not the primary question, but are marks better on the precalculus200 items of the diagnostic test, or the calculus items? There are 9 precalculus201 and 11 calculus questions; convert to percentages. */202203 data extra;204 set explore;205 diff = (100 * precalc/9) - (100 * calc/11);206 label diff = 'Percentage correct: Precalc minus calc';207NOTE: 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 205:18NOTE: There were 579 observations read from the data set WORK.EXPLORE.NOTE: The data set WORK.EXTRA has 579 observations and 18 variables.NOTE: DATA statement used (Total process time):real time 0.00 secondsuser cpu time 0.00 secondssystem cpu time 0.00 secondsmemory 966.03kOS Memory 30636.00kTimestamp 02/12/2024 06:51:50 PMStep Count 42 Switch Count 2Page Faults 0Page Reclaims 113Page Swaps 0Voluntary Context Switches 11Involuntary Context Switches 0Block Input Operations 0Block Output Operations 272208 proc means n mean std t probt clm;209 title3 'Are pre-calculus questions easier?';210 var diff;211212 /* Do the following quantitative variables have a significant linear213 relationship with grade? What percent of the variation does each explain?214 * High school GPA215 * High school Calculus mark216 * High school English mark217 * Number precalculus correct on diagnostic test218 * Number calculus correct on diagnostic test219 * Total number correct on diagnostic test220 */221NOTE: There were 579 observations read from the data set WORK.EXTRA.NOTE: PROCEDURE MEANS used (Total process time):real time 0.03 secondsuser cpu time 0.03 secondssystem cpu time 0.01 secondsmemory 8973.56kOS Memory 37068.00kTimestamp 02/12/2024 06:51:50 PMStep Count 43 Switch Count 2Page Faults 0Page Reclaims 1783Page Swaps 0Voluntary Context Switches 29Involuntary Context Switches 0Block Input Operations 0Block Output Operations 8222 proc corr nosimple;223 title3 'Correlations between quantitative variables';224 var grade hsgpa hscalc hsengl precalc calc totscore;225NOTE: PROCEDURE CORR used (Total process time):real time 0.06 secondsuser cpu time 0.06 secondssystem cpu time 0.00 secondsmemory 1463.59kOS Memory 31144.00kTimestamp 02/12/2024 06:51:51 PMStep Count 44 Switch Count 1Page Faults 0Page Reclaims 143Page Swaps 0Voluntary Context Switches 11Involuntary Context Switches 1Block Input Operations 0Block Output Operations 16226 proc reg plots=none;227 title3 'Give an equation for predicting calculus grade from HS GPA';228 model grade = hsgpa;229NOTE: PROCEDURE REG used (Total process time):real time 0.03 secondsuser cpu time 0.04 secondssystem cpu time 0.01 secondsmemory 2609.78kOS Memory 32704.00kTimestamp 02/12/2024 06:51:51 PMStep Count 45 Switch Count 2Page Faults 0Page Reclaims 793Page Swaps 0Voluntary Context Switches 22Involuntary Context Switches 0Block Input Operations 0Block Output Operations 72230 proc glm;231 title3 'Do average marks differ significantly in the three courses?';232 class class;233 model grade = class;234 /* Also, what proportion of the variation in grade is explained by235 course? */236NOTE: PROCEDURE GLM used (Total process time):real time 0.34 secondsuser cpu time 0.12 secondssystem cpu time 0.02 secondsmemory 22119.71kOS Memory 51896.00kTimestamp 02/12/2024 06:51:51 PMStep Count 46 Switch Count 3Page Faults 0Page Reclaims 6096Page Swaps 0Voluntary Context Switches 532Involuntary Context Switches 0Block Input Operations 0Block Output Operations 1352237 proc freq;238 title2 'Do students in the three courses have different outcomes?';239 tables class * (passed outcome) / nocol nopercent chisq;240241NOTE: There were 579 observations read from the data set WORK.EXTRA.NOTE: PROCEDURE FREQ used (Total process time):real time 0.06 secondsuser cpu time 0.06 secondssystem cpu time 0.00 secondsmemory 1554.09kOS Memory 51632.00kTimestamp 02/12/2024 06:51:51 PMStep Count 47 Switch Count 5Page Faults 0Page Reclaims 288Page Swaps 0Voluntary Context Switches 37Involuntary Context Switches 0Block Input Operations 0Block Output Operations 560242 proc glm plots=none;243 title3 'Do the three courses attract different kinds of student?';244 class class;245 model hsgpa hscalc hsengl precalc calc totscore = class;246 means class;247NOTE: PROCEDURE GLM used (Total process time):real time 0.22 secondsuser cpu time 0.23 secondssystem cpu time 0.01 secondsmemory 2447.12kOS Memory 52920.00kTimestamp 02/12/2024 06:51:51 PMStep Count 48 Switch Count 3Page Faults 0Page Reclaims 292Page Swaps 0Voluntary Context Switches 24Involuntary Context Switches 0Block Input Operations 0Block Output Operations 472248 proc glm;249 title2 'Is there a sex dfference in average marks?';250 class sex;251 model grade = sex;252 means sex;253 /* Also, what proportion of the variation in grade is explained by254 sex? */255NOTE: PROCEDURE GLM used (Total process time):real time 0.40 secondsuser cpu time 0.16 secondssystem cpu time 0.02 secondsmemory 4850.15kOS Memory 54972.00kTimestamp 02/12/2024 06:51:52 PMStep Count 49 Switch Count 3Page Faults 0Page Reclaims 1449Page Swaps 0Voluntary Context Switches 904Involuntary Context Switches 1Block Input Operations 0Block Output Operations 1176256 proc ttest;257 title2 'Could we conclude NO sex difference?';258 class sex;259 var grade;260 /* Includes confidence interval for difference between means. */261NOTE: PROCEDURE TTEST used (Total process time):real time 0.75 secondsuser cpu time 0.24 secondssystem cpu time 0.07 secondsmemory 11140.96kOS Memory 61132.00kTimestamp 02/12/2024 06:51:52 PMStep Count 50 Switch Count 49Page Faults 0Page Reclaims 27184Page Swaps 0Voluntary Context Switches 1374Involuntary Context Switches 0Block Input Operations 0Block Output Operations 2672262 proc glm;263 title2 'Do average marks depend on mother tongue?';264 class tongue;265 model grade = tongue;266 means tongue;267 /* Also, what proportion of the variation in grade is explained by268 mother tongue? */269NOTE: PROCEDURE GLM used (Total process time):real time 0.34 secondsuser cpu time 0.17 secondssystem cpu time 0.02 secondsmemory 4866.37kOS Memory 58044.00kTimestamp 02/12/2024 06:51:53 PMStep Count 51 Switch Count 3Page Faults 0Page Reclaims 1309Page Swaps 0Voluntary Context Switches 832Involuntary Context Switches 2Block Input Operations 0Block Output Operations 1176270 proc glm;271 title2 'Do average marks depend on ethnic background?';272 class ethnic;273 model grade = ethnic;274 means ethnic;275 means ethnic / tukey bon scheffe;276 /* Also, what proportion of the variation in grade is explained by277 ethnic background? */278279 run;280 quit;NOTE: PROCEDURE GLM used (Total process time):real time 0.61 secondsuser cpu time 0.35 secondssystem cpu time 0.03 secondsmemory 5107.46kOS Memory 58300.00kTimestamp 02/12/2024 06:51:53 PMStep Count 52 Switch Count 3Page Faults 0Page Reclaims 1775Page Swaps 0Voluntary Context Switches 2094Involuntary Context Switches 1Block Input Operations 0Block Output Operations 1880281282283 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;295