1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
61
62 /************************ math0.1.sas *************************/
63 title 'Prediction of Performance in First-year Calculus';
64 title2 'Read exploratory data and locate problems: Part 1';
65
66 data mathex;
67 infile '/folders/myfolders/441s18/Lecture/exploremath.data.txt';
68 input id course precalc calc gpa calculus english mark lang $ sex $
69 nation1 nation2 sample;
70
NOTE: The infile '/folders/myfolders/441s18/Lecture/exploremath.data.txt' is:
Filename=/folders/myfolders/441s18/Lecture/exploremath.data.txt,
Owner Name=root,Group Name=vboxsf,
Access Permission=-rwxrwx---,
Last Modified=January 18, 2016 17:34:49 o'clock,
File Size (bytes)=44583
NOTE: 579 records were read from the infile '/folders/myfolders/441s18/Lecture/exploremath.data.txt'.
The minimum record length was 75.
The maximum record length was 75.
NOTE: The data set WORK.MATHEX has 579 observations and 13 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.02 seconds
71 proc freq data=mathex;
72 title3 'Frequency distributions of all variables'; /* Don't print this! */
73 tables _all_;
74
75 /* After looking at frequency distributions, locate problem cases if necessary */
76
NOTE: There were 579 observations read from the data set WORK.MATHEX.
NOTE: PROCEDURE FREQ used (Total process time):
real time 1.75 seconds
cpu time 1.73 seconds
77 proc print data=mathex;
78 title3 'Strange marks in HS English';
79 where english=0 or english > 100;
80
NOTE: There were 9 observations read from the data set WORK.MATHEX.
WHERE (english=0) or (english>100);
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.08 seconds
cpu time 0.09 seconds
81 proc print data=mathex;
82 title3 'Students with Strange High School Marks';
83 where gpa = 0 or
84 english=0 or english > 100 or
85 calculus=0 or calculus>100;
86
87
88
89
90
91 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
104