1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
72
73 /* 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 seconds
user cpu time 0.00 seconds
system cpu time 0.00 seconds
memory 248.93k
OS Memory 29604.00k
Timestamp 02/12/2024 06:51:50 PM
Step Count 38 Switch Count 0
Page Faults 0
Page Reclaims 18
Page Swaps 0
Voluntary Context Switches 0
Involuntary Context Switches 0
Block Input Operations 0
Block Output Operations 32
NOTE: 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)=90324
NOTE: 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:24
NOTE: The data set WORK.MATH has 1158 observations and 26 variables.
NOTE: DATA statement used (Total process time):
real time 0.03 seconds
user cpu time 0.00 seconds
system cpu time 0.00 seconds
memory 977.00k
OS Memory 30376.00k
Timestamp 02/12/2024 06:51:50 PM
Step Count 39 Switch Count 2
Page Faults 0
Page Reclaims 147
Page Swaps 0
Voluntary Context Switches 20
Involuntary Context Switches 0
Block Input Operations 0
Block Output Operations 520
NOTE: 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 seconds
user cpu time 0.01 seconds
system cpu time 0.00 seconds
memory 1156.90k
OS Memory 30636.00k
Timestamp 02/12/2024 06:51:50 PM
Step Count 40 Switch Count 2
Page Faults 0
Page Reclaims 111
Page Swaps 0
Voluntary Context Switches 11
Involuntary Context Switches 0
Block Input Operations 0
Block Output Operations 264
NOTE: 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 seconds
user cpu time 0.00 seconds
system cpu time 0.00 seconds
memory 1137.53k
OS Memory 30636.00k
Timestamp 02/12/2024 06:51:50 PM
Step Count 41 Switch Count 2
Page Faults 0
Page Reclaims 110
Page Swaps 0
Voluntary Context Switches 11
Involuntary Context Switches 0
Block Input Operations 0
Block Output Operations 264
198
199 /* It's not the primary question, but are marks better on the precalculus
200 items of the diagnostic test, or the calculus items? There are 9 precalculus
201 and 11 calculus questions; convert to percentages. */
202
203 data extra;
204 set explore;
205 diff = (100 * precalc/9) - (100 * calc/11);
206 label diff = 'Percentage correct: Precalc minus calc';
207
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 205:18
NOTE: 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 seconds
user cpu time 0.00 seconds
system cpu time 0.00 seconds
memory 966.03k
OS Memory 30636.00k
Timestamp 02/12/2024 06:51:50 PM
Step Count 42 Switch Count 2
Page Faults 0
Page Reclaims 113
Page Swaps 0
Voluntary Context Switches 11
Involuntary Context Switches 0
Block Input Operations 0
Block Output Operations 272
208 proc means n mean std t probt clm;
209 title3 'Are pre-calculus questions easier?';
210 var diff;
211
212 /* Do the following quantitative variables have a significant linear
213 relationship with grade? What percent of the variation does each explain?
214 * High school GPA
215 * High school Calculus mark
216 * High school English mark
217 * Number precalculus correct on diagnostic test
218 * Number calculus correct on diagnostic test
219 * Total number correct on diagnostic test
220 */
221
NOTE: There were 579 observations read from the data set WORK.EXTRA.
NOTE: PROCEDURE MEANS used (Total process time):
real time 0.03 seconds
user cpu time 0.03 seconds
system cpu time 0.01 seconds
memory 8973.56k
OS Memory 37068.00k
Timestamp 02/12/2024 06:51:50 PM
Step Count 43 Switch Count 2
Page Faults 0
Page Reclaims 1783
Page Swaps 0
Voluntary Context Switches 29
Involuntary Context Switches 0
Block Input Operations 0
Block Output Operations 8
222 proc corr nosimple;
223 title3 'Correlations between quantitative variables';
224 var grade hsgpa hscalc hsengl precalc calc totscore;
225
NOTE: PROCEDURE CORR used (Total process time):
real time 0.06 seconds
user cpu time 0.06 seconds
system cpu time 0.00 seconds
memory 1463.59k
OS Memory 31144.00k
Timestamp 02/12/2024 06:51:51 PM
Step Count 44 Switch Count 1
Page Faults 0
Page Reclaims 143
Page Swaps 0
Voluntary Context Switches 11
Involuntary Context Switches 1
Block Input Operations 0
Block Output Operations 16
226 proc reg plots=none;
227 title3 'Give an equation for predicting calculus grade from HS GPA';
228 model grade = hsgpa;
229
NOTE: PROCEDURE REG used (Total process time):
real time 0.03 seconds
user cpu time 0.04 seconds
system cpu time 0.01 seconds
memory 2609.78k
OS Memory 32704.00k
Timestamp 02/12/2024 06:51:51 PM
Step Count 45 Switch Count 2
Page Faults 0
Page Reclaims 793
Page Swaps 0
Voluntary Context Switches 22
Involuntary Context Switches 0
Block Input Operations 0
Block Output Operations 72
230 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 by
235 course? */
236
NOTE: PROCEDURE GLM used (Total process time):
real time 0.34 seconds
user cpu time 0.12 seconds
system cpu time 0.02 seconds
memory 22119.71k
OS Memory 51896.00k
Timestamp 02/12/2024 06:51:51 PM
Step Count 46 Switch Count 3
Page Faults 0
Page Reclaims 6096
Page Swaps 0
Voluntary Context Switches 532
Involuntary Context Switches 0
Block Input Operations 0
Block Output Operations 1352
237 proc freq;
238 title2 'Do students in the three courses have different outcomes?';
239 tables class * (passed outcome) / nocol nopercent chisq;
240
241
NOTE: There were 579 observations read from the data set WORK.EXTRA.
NOTE: PROCEDURE FREQ used (Total process time):
real time 0.06 seconds
user cpu time 0.06 seconds
system cpu time 0.00 seconds
memory 1554.09k
OS Memory 51632.00k
Timestamp 02/12/2024 06:51:51 PM
Step Count 47 Switch Count 5
Page Faults 0
Page Reclaims 288
Page Swaps 0
Voluntary Context Switches 37
Involuntary Context Switches 0
Block Input Operations 0
Block Output Operations 560
242 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;
247
NOTE: PROCEDURE GLM used (Total process time):
real time 0.22 seconds
user cpu time 0.23 seconds
system cpu time 0.01 seconds
memory 2447.12k
OS Memory 52920.00k
Timestamp 02/12/2024 06:51:51 PM
Step Count 48 Switch Count 3
Page Faults 0
Page Reclaims 292
Page Swaps 0
Voluntary Context Switches 24
Involuntary Context Switches 0
Block Input Operations 0
Block Output Operations 472
248 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 by
254 sex? */
255
NOTE: PROCEDURE GLM used (Total process time):
real time 0.40 seconds
user cpu time 0.16 seconds
system cpu time 0.02 seconds
memory 4850.15k
OS Memory 54972.00k
Timestamp 02/12/2024 06:51:52 PM
Step Count 49 Switch Count 3
Page Faults 0
Page Reclaims 1449
Page Swaps 0
Voluntary Context Switches 904
Involuntary Context Switches 1
Block Input Operations 0
Block Output Operations 1176
256 proc ttest;
257 title2 'Could we conclude NO sex difference?';
258 class sex;
259 var grade;
260 /* Includes confidence interval for difference between means. */
261
NOTE: PROCEDURE TTEST used (Total process time):
real time 0.75 seconds
user cpu time 0.24 seconds
system cpu time 0.07 seconds
memory 11140.96k
OS Memory 61132.00k
Timestamp 02/12/2024 06:51:52 PM
Step Count 50 Switch Count 49
Page Faults 0
Page Reclaims 27184
Page Swaps 0
Voluntary Context Switches 1374
Involuntary Context Switches 0
Block Input Operations 0
Block Output Operations 2672
262 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 by
268 mother tongue? */
269
NOTE: PROCEDURE GLM used (Total process time):
real time 0.34 seconds
user cpu time 0.17 seconds
system cpu time 0.02 seconds
memory 4866.37k
OS Memory 58044.00k
Timestamp 02/12/2024 06:51:53 PM
Step Count 51 Switch Count 3
Page Faults 0
Page Reclaims 1309
Page Swaps 0
Voluntary Context Switches 832
Involuntary Context Switches 2
Block Input Operations 0
Block Output Operations 1176
270 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 by
277 ethnic background? */
278
279 run;
280 quit;
NOTE: PROCEDURE GLM used (Total process time):
real time 0.61 seconds
user cpu time 0.35 seconds
system cpu time 0.03 seconds
memory 5107.46k
OS Memory 58300.00k
Timestamp 02/12/2024 06:51:53 PM
Step Count 52 Switch Count 3
Page Faults 0
Page Reclaims 1775
Page Swaps 0
Voluntary Context Switches 2094
Involuntary Context Switches 1
Block Input Operations 0
Block Output Operations 1880
281
282
283 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
295