1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
72
73 /************************ mathpeek.sas *************************/
74 title 'Prediction of Performance in First-year Calculus';
75 title2 'Read data and locate problems';
76
77 data math;
78 infile '/home/u1407221/441s24/data/math.data.txt';
79 input id course precalc calc gpa calculus english mark lang $ sex $
80 nation1 nation2 sample;
81
82 /* proc contents; */
83
84
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: The data set WORK.MATH has 1158 observations and 13 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 786.68k
OS Memory 25512.00k
Timestamp 02/10/2024 09:04:43 PM
Step Count 24 Switch Count 2
Page Faults 0
Page Reclaims 186
Page Swaps 0
Voluntary Context Switches 23
Involuntary Context Switches 0
Block Input Operations 184
Block Output Operations 264
85 proc freq data=math;
86 title3 'Frequency distributions of all variables'; /* Don't print this! */
87 tables _all_;
88
89 /* After looking at frequency distributions, locate problem cases if necessary */
90
NOTE: There were 1158 observations read from the data set WORK.MATH.
NOTE: PROCEDURE FREQ used (Total process time):
real time 0.82 seconds
user cpu time 0.81 seconds
system cpu time 0.01 seconds
memory 7935.37k
OS Memory 33452.00k
Timestamp 02/10/2024 09:04:44 PM
Step Count 25 Switch Count 4
Page Faults 0
Page Reclaims 2391
Page Swaps 0
Voluntary Context Switches 24
Involuntary Context Switches 1
Block Input Operations 0
Block Output Operations 904
91 proc print data=math;
92 title3 'Strange marks in HS English';
93 where english=0 or english > 100;
94
NOTE: There were 11 observations read from the data set WORK.MATH.
WHERE (english=0) or (english>100);
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.03 seconds
user cpu time 0.03 seconds
system cpu time 0.01 seconds
memory 1001.43k
OS Memory 32940.00k
Timestamp 02/10/2024 09:04:44 PM
Step Count 26 Switch Count 1
Page Faults 0
Page Reclaims 234
Page Swaps 0
Voluntary Context Switches 8
Involuntary Context Switches 0
Block Input Operations 0
Block Output Operations 32
95 proc print data=math;
96 title3 'Students with Strange High School Marks';
97 where gpa = 0 or
98 english=0 or english > 100 or
99 calculus=0 or calculus>100;
100
101
102
103 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
115