1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
61
62 /************************ math0.2.sas *************************/
63 title 'Prediction of Performance in First-year Calculus';
64 title2 'Read exploratory data and locate problems: Part 2';
65
66 proc format;
67 value ynfmt 0 = 'No' 1 = 'Yes';
NOTE: Format YNFMT has been output.
68 value crsfmt 1 = 'Catch-up' 2 = 'Mainstrm' 3 = 'Elite' 4 = 'No Resp';
NOTE: Format CRSFMT has been output.
69 value nfmt
70 1 = 'Asian'
71 2 = 'Eastern European'
72 3 = 'European not Eastern'
73 4 = 'Middle-Eastern and Pakistani'
74 5 = 'East Indian'
75 6 = 'Other and DK' ;
NOTE: Format NFMT has been output.
76
NOTE: PROCEDURE FORMAT used (Total process time):
real time 0.02 seconds
cpu time 0.01 seconds
77 data mathex;
78 infile '/folders/myfolders/441s18/Lecture/exploremath.data.txt';
79 input id course precalc calc gpa calculus english mark lang $ sex $
80 nation1 nation2 sample;
81 /****** Fix problems located in first run ******/
82 if course = 4 then course = .; /* No response is missing */
83 /* Missing HS marks were zeros */
84 if 60 le gpa le 100 then hsgpa = gpa; /* Else missing is automatic */
85 if 0 < calculus < 101 then hscalc = calculus;
86 if 0 < english < 101 then hsengl = english;
87 /* Some missing university calculus marks were zero,
88 and 998=SDF and 999=WDR */
89 if mark=0 then grade=.;
90 else if mark > 100 then grade=.;
91 else grade=mark;
92 /* There were just a few French speakers */
93 if lang='French' then tongue='Other '; else tongue=lang;
94 label tongue = 'Mother Tongue (Eng or Other)';
95 format course crsfmt.;
96 format nation1 nation2 nfmt.;
97
98 label
99 precalc = 'Number precalculus correct'
100 calc = 'Number calculus correct'
101 totscore = 'Total # right on diagnostic test'
102 passed = 'Passed the course'
103 grade = 'Final mark (if any)'
104 hsgpa = 'High School GPA'
105 hscalc = 'HS Calculus'
106 hsengl = 'HS English'
107 lang = 'Mother Tongue'
108 nation1 = 'Nationality of name acc to rater1'
109 nation2 = 'Nationality of name acc to rater2'
110 tongue = 'Mother Tongue (Eng or Other)';
111
NOTE: Variable totscore is uninitialized.
NOTE: Variable passed is uninitialized.
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 18 variables.
NOTE: DATA statement used (Total process time):
real time 0.02 seconds
cpu time 0.02 seconds
112 proc freq data=mathex;
113 title3 'Frequency distributions of variables to be used';
114 tables course sex nation1 nation2 hsgpa -- tongue;
115 /* hsgpa -- tongue =
116 hsgpa hscalc hsengl grade tongue */
117
NOTE: There were 579 observations read from the data set WORK.MATHEX.
NOTE: PROCEDURE FREQ used (Total process time):
real time 0.69 seconds
cpu time 0.69 seconds
118 proc freq data=mathex;
119 title3 'Agreement of raters on nationality of name';
120 tables nation1*nation2 / norow nocol nopercent;
121
122
123
124
125
126
127 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
140